diff --git a/phpstan.neon b/phpstan.neon index 0a924aa9..b3be0341 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -19,7 +19,6 @@ parameters: - "#with a nullable type declaration#" - "#type mixed is not subtype of native#" - "#is not allowed to extend#" - - "#Language construct eval#" - "# with null as default value#" - "#has parameter \\$closure with default value.#" - "#has parameter \\$description with default value.#" diff --git a/src/Factories/TestCaseFactory.php b/src/Factories/TestCaseFactory.php index e1b4ea3a..1f466e6e 100644 --- a/src/Factories/TestCaseFactory.php +++ b/src/Factories/TestCaseFactory.php @@ -209,7 +209,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",