fix: type checking

This commit is contained in:
Nuno Maduro
2023-03-13 16:55:41 +00:00
parent 88e576c3a3
commit ae15fa668d
2 changed files with 4 additions and 11 deletions

View File

@ -18,16 +18,13 @@
],
"require": {
"php": "^8.1.0",
"brianium/paratest": "^7.1.0",
"brianium/paratest": "^7.1.1",
"nunomaduro/collision": "^7.1.0",
"nunomaduro/termwind": "^1.15.1",
"pestphp/pest-plugin": "^2.0.0",
"pestphp/pest-plugin-arch": "^2.0.0",
"phpunit/phpunit": "^10.0.16"
},
"conflict": {
"brianium/paratest": "<7.0.6"
},
"version": "2.x-dev",
"autoload": {
"psr-4": {

View File

@ -55,7 +55,6 @@ final class StateGenerator
$state->add(TestResult::fromTestCase(
$riskyEvent->test(),
TestResult::RISKY,
/** @phpstan-ignore-next-line */
ThrowableBuilder::from(new TestOutcome($riskyEvent->message()))
));
}
@ -71,7 +70,6 @@ final class StateGenerator
$state->add(TestResult::fromTestCase(
$testResultEvent->test(),
TestResult::SKIPPED,
/** @phpstan-ignore-next-line */
ThrowableBuilder::from(new SkippedWithMessageException($testResultEvent->message()))
));
}
@ -140,13 +138,11 @@ final class StateGenerator
for ($i = 0; $i < $passedTests; $i++) {
$state->add(TestResult::fromTestCase(
new TestMethod(
/** @phpstan-ignore-next-line */
"$i",
/** @phpstan-ignore-next-line */
'',
"$i", // @phpstan-ignore-line
'', // @phpstan-ignore-line
'',
1,
TestDoxBuilder::fromClassNameAndMethodName('', ''),
TestDoxBuilder::fromClassNameAndMethodName('', ''), // @phpstan-ignore-line
MetadataCollection::fromArray([]),
TestDataCollection::fromArray([])
),