chore: ignores eval only on test factory

This commit is contained in:
Nuno Maduro
2022-12-07 09:32:27 +00:00
parent ecb5d9c83e
commit 1ad631c528
2 changed files with 1 additions and 2 deletions

View File

@ -19,7 +19,6 @@ parameters:
- "#with a nullable type declaration#" - "#with a nullable type declaration#"
- "#type mixed is not subtype of native#" - "#type mixed is not subtype of native#"
- "#is not allowed to extend#" - "#is not allowed to extend#"
- "#Language construct eval#"
- "# with null as default value#" - "# with null as default value#"
- "#has parameter \\$closure with default value.#" - "#has parameter \\$closure with default value.#"
- "#has parameter \\$description with default value.#" - "#has parameter \\$description with default value.#"

View File

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