From ee25b83c7b8b544c4aa01d783d1524b5a0ad6d64 Mon Sep 17 00:00:00 2001 From: Jannik Zschiesche Date: Mon, 21 Jul 2025 13:34:31 +0200 Subject: [PATCH] Disable `doctrine.columnType` rule --- CHANGELOG.md | 1 + phpstan/lib.neon | 3 +++ 2 files changed, 4 insertions(+) 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