Skip to content

Commit

Permalink
Adapt cs fixer for php 8
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosas authored Jan 11, 2024
2 parents 2bd6522 + 705a040 commit e75cf45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions ci/php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
'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],
//enable when min php >= 8.0
'get_class_to_class_keyword' => false,
'get_class_to_class_keyword' => true,
];

return (new PhpCsFixer\Config())
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(get_class($test));
$reflectedTest = $this->reflectTest($test::class);
if ($reflectedTest !== null) {
yield $reflectedTest;
}
Expand Down

0 comments on commit e75cf45

Please sign in to comment.