diff --git a/phpstan.dist.neon b/phpstan.dist.neon index fe51518d..c7da636f 100644 --- a/phpstan.dist.neon +++ b/phpstan.dist.neon @@ -59,6 +59,9 @@ parameters: - '#expects .*PartParameter, .*AbstractParameter given.#' - '#Part::getParameters\(\) should return .*AbstractParameter#' + # Fix some weird issue with how covariance with collections is solved + - '#Method App\\Entity\\Base\\AbstractStructuralDBElement::getParameters\(\) should return Doctrine\\Common\\Collections\\Collection but returns#' + # Ignore doctrine type mapping mismatch - '#Property .* type mapping mismatch: property can contain .* but database expects .*#' @@ -70,3 +73,6 @@ parameters: - message: '#Access to an undefined property Brick\\Schema\\Interfaces\\#' path: src/Services/InfoProviderSystem/Providers/GenericWebProvider.php + + - + identifier: nullCoalesce.property diff --git a/src/Doctrine/Functions/SiValueSort.php b/src/Doctrine/Functions/SiValueSort.php index 1bba1b9f..c4d16444 100644 --- a/src/Doctrine/Functions/SiValueSort.php +++ b/src/Doctrine/Functions/SiValueSort.php @@ -189,7 +189,7 @@ class SiValueSort extends FunctionNode return $number; } - $multiplier = self::SI_MULTIPLIERS[$prefix] ?? 1.0; + $multiplier = self::SI_MULTIPLIERS[$prefix] ?? 1.0; //@phpstan-ignore-line - fallback to 1.0 if prefix is not recognized (should not happen due to regex) return $number * $multiplier; }