chore: improves type checking

This commit is contained in:
Nuno Maduro
2023-08-21 09:39:55 +01:00
parent 2dc413cba0
commit 6d9c0483a6
5 changed files with 14 additions and 5 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
public function __invoke(TestCaseMethodFactory $method, array $attributes): array // @phpstan-ignore-line
{
return $attributes;
}

View File

@ -193,7 +193,7 @@ final class TestCaseFactory
}
PHP;
eval($classCode);
eval($classCode); // @phpstan-ignore-line
} 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();
@ob_clean(); // @phpstan-ignore-line
if ($this->buffer !== '') {
$this->flush();