From fc94d0d53c777423df08228a66311fcc00ff1614 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20FEREY?= Date: Fri, 17 May 2024 15:56:11 +0200 Subject: [PATCH] fix: retro-compatibility & config phpstan --- composer.json | 6 +++--- phpstan.neon | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 3a7c6b5..73771ee 100644 --- a/composer.json +++ b/composer.json @@ -10,9 +10,9 @@ } ], "require": { - "php": "^8.1", - "doctrine/orm": "^3.1", - "doctrine/dbal": "^4.0", + "php": "^8", + "doctrine/orm": "^2.7|^3.1", + "doctrine/dbal": "^3.8|^4.0", "webmozart/assert": "^1.11" }, "autoload": { diff --git a/phpstan.neon b/phpstan.neon index 9fd878f..bb539f6 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,10 +1,10 @@ parameters: level: max - checkMissingIterableValueType: false - checkGenericClassInNonGenericObjectType: false paths: - src/ ignoreErrors: + - identifier: missingType.iterableValue + - identifier: missingType.generics # callable with array syntax is not inferred - '#.*function call_user_func expects callable.*#'