Skip to content

Commit ccb0d55

Browse files
committed
bug #1014 hiding php8 file so it doesn't throw autoloading warning (weaverryan)
This PR was merged into the 1.0-dev branch. Discussion ---------- hiding php8 file so it doesn't throw autoloading warning Fixes #1013 The contents of this odd file need to live in a separate file so that PHP 7 can parse `MigrationDiffFilteredOutput.php` without encountering a syntax error on the `string|iterable` type. If anyone can suggest a nicer solution, I'm all ears :). Commits ------- 583c67e hiding php8 file so it doesn't throw autoloading warning
2 parents 40b9b55 + 583c67e commit ccb0d55

File tree

3 files changed

+1
-2
lines changed

3 files changed

+1
-2
lines changed

.php-cs-fixer.dist.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
->exclude('fixtures')
1212
// the PHP template files are a bit special
1313
->notName('*.tpl.php')
14-
->notPath('src/Console/MigrationDiffFilteredOutput_php8.php')
1514
;
1615

1716
return (new PhpCsFixer\Config())

src/Console/MigrationDiffFilteredOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function setDecorated($decorated)
4242
}
4343
}
4444
} else {
45-
require __DIR__.'/MigrationDiffFilteredOutput_php8.php';
45+
require __DIR__.'/MigrationDiffFilteredOutput_php8';
4646
}
4747

4848
trait BaseMakerMigrationDiffFilteredOuputTrait

0 commit comments

Comments
 (0)