Skip to content
Permalink
Browse files

Fix too-long line

  • Loading branch information
muglug committed Dec 11, 2019
1 parent c9e77d3 commit 2f9b1ff6654568f11a23d3d92752233a53550b13
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/Psalm/Internal/Analyzer/CommentAnalyzer.php
@@ -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_]+))?/';

0 comments on commit 2f9b1ff

Please sign in to comment.
You can’t perform that action at this time.