Add cleaner list of classes allowed to be extended

This commit is contained in:
Joshua Ramon Enslin 2020-09-04 22:22:07 +02:00 committed by Stefan Rohde-Enslin
parent a3734486eb
commit 744769e8bf

View File

@ -3,7 +3,6 @@ includes:
- ../../../vendor/phpstan/phpstan-deprecation-rules/rules.neon - ../../../vendor/phpstan/phpstan-deprecation-rules/rules.neon
parameters: parameters:
ignoreErrors: ignoreErrors:
- '#Class (MDMysqliInvalidInput|MDMysqliExpectedError|MDExpectedException|MDgenericInvalidInputsException) is neither abstract nor final.#'
- '#Method MDMysqli::_check_query_efficiency\(\) is unused.#' - '#Method MDMysqli::_check_query_efficiency\(\) is unused.#'
- '# with null as default value.#' - '# with null as default value.#'
polluteScopeWithLoopInitialAssignments: false polluteScopeWithLoopInitialAssignments: false
@ -18,7 +17,19 @@ parameters:
reportStaticMethodSignatures: true reportStaticMethodSignatures: true
ergebnis: ergebnis:
allowAbstractClasses: true allowAbstractClasses: true
classesNotRequiredToBeAbstractOrFinal: [] classesNotRequiredToBeAbstractOrFinal:
- mysqli
- mysqli_stmt
- Exception
- MDGenericWriter
- MDGenericObject
- XMLParser
- LidoParser
- MDValueSet
- MDMysqliInvalidInput
- MDMysqliExpectedError
- MDgenericInvalidInputsException
- MDExpectedException
interfacesImplementedByContainers: interfacesImplementedByContainers:
- Psr\Container\ContainerInterface - Psr\Container\ContainerInterface
classesAllowedToBeExtended: classesAllowedToBeExtended: