From e908a4e3488129ac3764fd2694921673684c6d63 Mon Sep 17 00:00:00 2001 From: Javier Spagnoletti Date: Fri, 29 May 2020 01:57:28 -0300 Subject: [PATCH] Ignore PHPStan error about missing class `User` --- phpstan.neon.dist | 3 +++ 1 file changed, 3 insertions(+) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index a19e9a59..40b30ac9 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -10,5 +10,8 @@ parameters: - src/Test/AbstractWidgetTestCase.php - tests/bootstrap.php + ignoreErrors: + - '#^Class Sonata\\UserBundle\\Model\\User not found\.$#' + autoload_files: - vendor/autoload.php