Remove unnecessary type checks
These were added during initial testing of php8 compatibility using PHPStan and were false positive due PHPStan issues. [MAILPOET-2837]
This commit is contained in:
committed by
Veljko V
parent
8b58167ed9
commit
35a25e119f
@ -8,26 +8,6 @@ $config['parameters']['phpVersion'] = $phpVersion;
|
||||
# PHPStan gets smarter when runs on PHP8 and some type checks added because of PHP8 are reported as unnecessary when we run PHPStan on PHP7
|
||||
# see https://github.com/phpstan/phpstan/issues/4060
|
||||
if ($phpVersion < 80000) {
|
||||
$config['parameters']['ignoreErrors'][] = [
|
||||
'message' => '#^Else branch is unreachable because ternary operator condition is always true#',
|
||||
'path' => __DIR__ . '/../../lib/AdminPages/Pages/Forms.php',
|
||||
'count' => 1,
|
||||
];
|
||||
$config['parameters']['ignoreErrors'][] = [
|
||||
'message' => '#^Else branch is unreachable because ternary operator condition is always true#',
|
||||
'path' => __DIR__ . '/../../lib/AdminPages/Pages/Newsletters.php',
|
||||
'count' => 1,
|
||||
];
|
||||
$config['parameters']['ignoreErrors'][] = [
|
||||
'message' => '#^Strict comparison using === between PDOStatement and false will always evaluate to false#',
|
||||
'path' => __DIR__ . '/../../lib/Doctrine/Driver/PDOConnection.php',
|
||||
'count' => 1,
|
||||
];
|
||||
$config['parameters']['ignoreErrors'][] = [
|
||||
'message' => '#^Strict comparison using === between string and false will always evaluate to false#',
|
||||
'path' => __DIR__ . '/../../lib/Doctrine/Driver/PDOConnection.php',
|
||||
'count' => 1,
|
||||
];
|
||||
$config['parameters']['ignoreErrors'][] = [
|
||||
'message' => '#^Cannot access offset \\(int\\|string\\) on array\\|false#',
|
||||
'path' => __DIR__ . '/../../lib/Features/FeatureFlagsController.php',
|
||||
|
Reference in New Issue
Block a user