diff --git a/phpstan.neon b/phpstan.neon index ca71762a..db118378 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -43,4 +43,13 @@ parameters: numericOperandsInArithmeticOperators: true strictCalls: true switchConditionsMatchingType: false - noVariableVariables: false \ No newline at end of file + noVariableVariables: false + + ignoreErrors: + # Ignore errors caused by complex mapping with AbstractStructuralDBElement + - '#AbstractStructuralDBElement does not have a field named \$parent#' + - '#AbstractStructuralDBElement does not have a field named \$name#' + + # Ignore errors related to the use of the ParametersTrait in Part entity + - '#expects .*PartParameter, .*AbstractParameter given.#' + - '#Part::getParameters\(\) should return .*AbstractParameter#' \ No newline at end of file