mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
refactor: PHP 8 features
This commit is contained in:
@ -17,6 +17,6 @@ final class EnsureConfigurationDefaults implements ConfiguredSubscriber
|
||||
*/
|
||||
public function notify(Configured $event): void
|
||||
{
|
||||
$configuration = $event->configuration();
|
||||
// TODO...
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@ final class EnsureTestsAreLoaded implements LoadedSubscriber
|
||||
/**
|
||||
* The current test suite, if any.
|
||||
*/
|
||||
private static ?TestSuite $testSuite;
|
||||
private static ?TestSuite $testSuite = null;
|
||||
|
||||
/**
|
||||
* Runs the subscriber.
|
||||
@ -31,7 +31,7 @@ final class EnsureTestsAreLoaded implements LoadedSubscriber
|
||||
|
||||
$testSuite = \Pest\TestSuite::getInstance();
|
||||
$testSuite->tests->build($testSuite, function (TestCase $testCase) use (&$testSuites): void {
|
||||
$testCaseClass = get_class($testCase);
|
||||
$testCaseClass = $testCase::class;
|
||||
if (!array_key_exists($testCaseClass, $testSuites)) {
|
||||
$testSuites[$testCaseClass] = [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user