Update phpstan config
parent
e9b60580f5
commit
fb854df124
|
@ -31,15 +31,11 @@ parameters:
|
||||||
- '~^Undefined variable: \$vendorDir$~'
|
- '~^Undefined variable: \$vendorDir$~'
|
||||||
- '~^Undefined variable: \$baseDir$~'
|
- '~^Undefined variable: \$baseDir$~'
|
||||||
|
|
||||||
# variable defined in eval
|
|
||||||
- '~^Undefined variable: \$res$~'
|
|
||||||
|
|
||||||
# we don't have different constructors for parent/child
|
# we don't have different constructors for parent/child
|
||||||
- '~^Unsafe usage of new static\(\)\.$~'
|
- '~^Unsafe usage of new static\(\)\.$~'
|
||||||
|
|
||||||
# Ignore some irrelevant errors in test files
|
# Ignore some irrelevant errors in test files
|
||||||
- '~Method Composer\\Test\\[^:]+::(setUp(BeforeClass)?|tearDown(AfterClass)?|test[^(]+)\(\) has no return type specified.~'
|
- '~Method Composer\\Test\\[^:]+::(data\w+|provide\w+|\w+?Provider)\(\) (has no return type specified.|return type has no value type specified in iterable type array.)~'
|
||||||
- '~Method Composer\\Test\\[^:]+::(data\w+|provide\w+|\w+?Provider)\(\) has no return type specified.~'
|
|
||||||
|
|
||||||
# PHPUnit assertions as instance methods
|
# PHPUnit assertions as instance methods
|
||||||
- '~Dynamic call to static method PHPUnit\\Framework\\Assert::\w+\(\)~'
|
- '~Dynamic call to static method PHPUnit\\Framework\\Assert::\w+\(\)~'
|
||||||
|
|
|
@ -309,7 +309,7 @@ class InstallerTest extends TestCase
|
||||||
{
|
{
|
||||||
if ($condition) {
|
if ($condition) {
|
||||||
eval('$res = '.$condition.';');
|
eval('$res = '.$condition.';');
|
||||||
if (!$res) {
|
if (!$res) { // @phpstan-ignore-line
|
||||||
$this->markTestSkipped($condition);
|
$this->markTestSkipped($condition);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue