Skip to content

Commit

Permalink
#214 explicit null return, strict comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Sep 26, 2016
1 parent ed83601 commit 9a40fa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SourceLocator/Type/FileIteratorSourceLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ private function getAggregatedSourceLocator()
return $this->aggregateSourceLocator ?
$this->aggregateSourceLocator : new AggregateSourceLocator(array_values(array_filter(array_map(
function (\SplFileInfo $item) {
if (! ($item->isFile() && pathinfo($item->getRealPath(), \PATHINFO_EXTENSION) == 'php')) {
return;
if (! ($item->isFile() && pathinfo($item->getRealPath(), \PATHINFO_EXTENSION) === 'php')) {
return null;
}

return new SingleFileSourceLocator($item->getRealPath());
Expand Down

0 comments on commit 9a40fa2

Please sign in to comment.