-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://github.com/EdgedesignCZ/phpqa/pull/219/checks?check_run_id=1821013012#step:6:7 PHP Fatal error: Declaration of Edge\QA\OptionsTest::setUp() must be compatible with PHPUnit\Framework\TestCase::setUp(): void https://github.com/EdgedesignCZ/phpqa/pull/219/checks?check_run_id=1821044568#step:6:829 Ignore not installed phpcpd, it will be fixed in another PR.
- Loading branch information
1 parent
d853d37
commit b0f1c6f
Showing
4 changed files
with
45 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
$files = [ | ||
'OptionsTest.php', | ||
'Report/ReportTest.php', | ||
]; | ||
foreach ($files as $file) { | ||
$path = __DIR__ . "/../{$file}"; | ||
$compatiblePhp = str_replace( | ||
[ | ||
'function setUp()', | ||
'function tearDown()', | ||
], | ||
[ | ||
'function setUp(): void', | ||
'function tearDown(): void', | ||
], | ||
file_get_contents($path) | ||
); | ||
file_put_contents($path, $compatiblePhp); | ||
} |