Skip to content

Commit

Permalink
Rollback v0.11 to PHP 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosas authored Mar 3, 2024
1 parent 111b9aa commit e79ca46
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions ci/php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

$rules = [
'@PER' => true,
'@PHP80Migration' => true,
'@PHP80Migration:risky' => true,
'@PhpCsFixer' => true,
PhpCsFixerCustomFixers\Fixer\DeclareAfterOpeningTagFixer::name() => true,
PhpCsFixerCustomFixers\Fixer\PhpdocArrayStyleFixer::name() => true,
Expand All @@ -24,7 +22,8 @@
'strict_param' => true,
'blank_line_before_statement' => ['statements' => ['continue', 'declare', 'exit', 'include', 'include_once', 'phpdoc', 'require', 'require_once', 'return', 'switch', 'throw', 'try', 'yield', 'yield_from']],
'yoda_style' => ['equal' => false, 'identical' => false, 'less_and_greater' => false],
'get_class_to_class_keyword' => true,
//enable when min php >= 8.0
'get_class_to_class_keyword' => false,
];

return (new PhpCsFixer\Config())
Expand Down
1 change: 0 additions & 1 deletion ci/phpstan-phpat.neon
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ parameters:
level: 8
paths:
- ../src
- ../tests/unit/rules
- ../tests/architecture
ignoreErrors:
-
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
}
],
"require": {
"php": "^8.0",
"php": "^7.4 || ^8.0",
"phpstan/phpstan": "^1.10"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "3.46.*",
"kubawerlos/php-cs-fixer-custom-fixers": "3.18.*",
"phpunit/phpunit": "^9.0 || ^10.0",
"phpunit/phpunit": "^9.0 || 10.5.*",
"vimeo/psalm": "5.19.*"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion src/Test/TestExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __invoke(): iterable
throw new ShouldNotHappenException();
}

$reflectedTest = $this->reflectTest($test::class);
$reflectedTest = $this->reflectTest(get_class($test));
if ($reflectedTest !== null) {
yield $reflectedTest;
}
Expand Down

0 comments on commit e79ca46

Please sign in to comment.