Skip to content

Commit

Permalink
Fix too-long line
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Dec 11, 2019
1 parent c9e77d3 commit 2f9b1ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Psalm/Internal/Analyzer/CommentAnalyzer.php
Expand Up @@ -908,7 +908,11 @@ public static function extractClassLikeDocblockInfo(

$method_entry = trim(preg_replace('/\/\/.*/', '', $method_entry));

$method_entry = preg_replace('/array\(([0-9a-zA-Z_\'\" ]+,)*([0-9a-zA-Z_\'\" ]+)\)/', '[]', $method_entry);
$method_entry = preg_replace(
'/array\(([0-9a-zA-Z_\'\" ]+,)*([0-9a-zA-Z_\'\" ]+)\)/',
'[]',
$method_entry
);

$end_of_method_regex = '/(?<!array\()\) ?(\: ?(\??[\\\\a-zA-Z0-9_]+))?/';

Expand Down

0 comments on commit 2f9b1ff

Please sign in to comment.