Permalink
Browse files

restore PHP 5.3 compatibility

  • Loading branch information...
remicollet committed Jun 26, 2017
1 parent c764a62 commit ff3e1ccdca5792de7a1aed654272f04bffe833ba
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/CollectorResult.php
  2. +1 −1 tests/DuplicateDetectionTest.php
View
@@ -44,7 +44,7 @@ public function addParseResult(\SplFileInfo $file, ParseResult $result) {
}
if (isset($this->units[$unit])) {
if (!isset($this->duplicates[$unit])) {
$this->duplicates[$unit] = [ $this->units[$unit] ];
$this->duplicates[$unit] = array( $this->units[$unit] );
}
$this->duplicates[$unit][] = $filename;
continue;
@@ -43,7 +43,7 @@
class DuplicateDetectionTest extends \PHPUnit\Framework\TestCase {
public function testBugIsFixed() {
$config = new Config([]);
$config = new Config(array());
$config->setLowercaseMode(true);
$factory = new Factory();

0 comments on commit ff3e1cc

Please sign in to comment.