feat: php 8.4 support

This commit is contained in:
Nuno Maduro
2024-10-15 15:31:29 +01:00
parent 9ceb0834ae
commit e8aaa586cb
11 changed files with 14 additions and 106 deletions

View File

@ -20,7 +20,7 @@ abstract class Attribute
* @param array<int, string> $attributes
* @return array<int, string>
*/
public function __invoke(TestCaseMethodFactory $method, array $attributes): array // @phpstan-ignore-line
public function __invoke(TestCaseMethodFactory $method, array $attributes): array
{
return $attributes;
}

View File

@ -194,7 +194,7 @@ final class TestCaseFactory
}
PHP;
eval($classCode); // @phpstan-ignore-line
eval($classCode);
} catch (ParseError $caught) {
throw new RuntimeException(sprintf(
"Unable to create test case for test file at %s. \n %s",

View File

@ -40,7 +40,7 @@ final class KernelDump
*/
public function disable(): void
{
@ob_clean(); // @phpstan-ignore-line
@ob_clean();
if ($this->buffer !== '') {
$this->flush();

View File

@ -391,7 +391,7 @@ final class WrapperRunner implements RunnerInterface
$testSuite = (new LogMerger)->merge($this->junitFiles);
(new Writer)->write(
$testSuite,
$testSuite, // @phpstan-ignore-line
$this->options->configuration->logfileJunit(),
);
}