From 744769e8bf02926aba9a6d34ca30bd3fa53e6f8b Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Fri, 4 Sep 2020 22:22:07 +0200 Subject: [PATCH] Add cleaner list of classes allowed to be extended --- rules/phpstan-rules.neon | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/rules/phpstan-rules.neon b/rules/phpstan-rules.neon index 92a62c2..3268fb5 100644 --- a/rules/phpstan-rules.neon +++ b/rules/phpstan-rules.neon @@ -3,7 +3,6 @@ includes: - ../../../vendor/phpstan/phpstan-deprecation-rules/rules.neon parameters: ignoreErrors: - - '#Class (MDMysqliInvalidInput|MDMysqliExpectedError|MDExpectedException|MDgenericInvalidInputsException) is neither abstract nor final.#' - '#Method MDMysqli::_check_query_efficiency\(\) is unused.#' - '# with null as default value.#' polluteScopeWithLoopInitialAssignments: false @@ -18,7 +17,19 @@ parameters: reportStaticMethodSignatures: true ergebnis: allowAbstractClasses: true - classesNotRequiredToBeAbstractOrFinal: [] + classesNotRequiredToBeAbstractOrFinal: + - mysqli + - mysqli_stmt + - Exception + - MDGenericWriter + - MDGenericObject + - XMLParser + - LidoParser + - MDValueSet + - MDMysqliInvalidInput + - MDMysqliExpectedError + - MDgenericInvalidInputsException + - MDExpectedException interfacesImplementedByContainers: - Psr\Container\ContainerInterface classesAllowedToBeExtended: