Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

Commit 291e963

Browse files
committed
Fixed PHP 5.3
1 parent c118453 commit 291e963

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/Finder/ParsedPhpFileFinder.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,15 @@ public function getParserErrors()
9393
*/
9494
public static function deprecationFinder(ParserInterface $parser, VerboseProgressOutput $progressOutput)
9595
{
96-
return (new ParsedPhpFileFinder($parser, $progressOutput))
96+
$finder = new ParsedPhpFileFinder($parser, $progressOutput);
97+
$finder
9798
->contains('@deprecated')
9899
->exclude('vendor')
99100
->exclude('Tests')
100101
->exclude('Test');
102+
103+
return $finder;
104+
101105
}
102106

103107
/**
@@ -107,10 +111,13 @@ public static function deprecationFinder(ParserInterface $parser, VerboseProgres
107111
*/
108112
public static function usageFinder(ParserInterface $parser, VerboseProgressOutput $progressOutput)
109113
{
110-
return (new ParsedPhpFileFinder($parser, $progressOutput))
114+
$finder = new ParsedPhpFileFinder($parser, $progressOutput);
115+
$finder
111116
->exclude('vendor')
112117
->exclude('Tests')
113118
->exclude('Test');
119+
120+
return $finder;
114121
}
115122

116123
/**

0 commit comments

Comments
 (0)