mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-09-19 23:56:13 +02:00

[TASK] Add the PHPStan strict rules (#471)

We want PHPStan to be as strict as possible.

(The new warning requires a change in Extbase to get solved properly.)
This commit is contained in:
Oliver Klee 2022-06-28 18:42:50 +02:00 committed by GitHub
parent bb6d2b97d2
commit f6e17b3be0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View file

@ -6,6 +6,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
## x.y.z ## x.y.z
### Added ### Added
- Add the PHPStan strict rules (#471)
- Add a Dependabot action for updating GitHub actions (#452) - Add a Dependabot action for updating GitHub actions (#452)
- Use Coveralls for the code coverage (#425) - Use Coveralls for the code coverage (#425)

View file

@ -44,6 +44,7 @@
"phpstan/extension-installer": "^1.1.0", "phpstan/extension-installer": "^1.1.0",
"phpstan/phpstan": "^1.7.15", "phpstan/phpstan": "^1.7.15",
"phpstan/phpstan-phpunit": "^1.1.1", "phpstan/phpstan-phpunit": "^1.1.1",
"phpstan/phpstan-strict-rules": "^1.3.0",
"phpunit/phpunit": "^8.5.26", "phpunit/phpunit": "^8.5.26",
"saschaegerer/phpstan-typo3": "^1.1.2", "saschaegerer/phpstan-typo3": "^1.1.2",
"seld/jsonlint": "^1.9.0", "seld/jsonlint": "^1.9.0",

View file

@ -1,2 +1,6 @@
parameters: parameters:
ignoreErrors: ignoreErrors:
-
message: "#^PHPDoc type array\\<string\\> of property TTN\\\\Tea\\\\Domain\\\\Repository\\\\Product\\\\TeaRepository\\:\\:\\$defaultOrderings is not the same as PHPDoc type array of overridden property TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\Repository\\<TTN\\\\Tea\\\\Domain\\\\Model\\\\Product\\\\Tea\\>\\:\\:\\$defaultOrderings\\.$#"
count: 1
path: Classes/Domain/Repository/Product/TeaRepository.php