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
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: