diff --git a/CHANGELOG.md b/CHANGELOG.md index 459f1e8..c878c81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ===== * (feature) Add custom PHPStan rule to detect wrong `Task` class names. +* (improvement) Disable `doctrine.columnType` rule, as it leads to too many false positives in combination with Symfony forms and entities. 2.0.0 diff --git a/phpstan/lib.neon b/phpstan/lib.neon index 7ca38c0..660e3d5 100644 --- a/phpstan/lib.neon +++ b/phpstan/lib.neon @@ -33,6 +33,9 @@ parameters: - identifier: method.deprecated path: %currentWorkingDirectory%/tests/* + # Using this will have a lot of false-positives, as entities are often used as form + # entries and there the fields need to be nullable. + - identifier: doctrine.columnType rules: - Janus\Phpstan\Rule\TaskRule