From b0cebf47d35b07d45f3ce5305b18a3bc6339c643 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Nowak?= Date: Tue, 22 Sep 2026 08:26:27 +0200 Subject: [PATCH] IBX-12654: Enabled the PHPStan strict rule for dynamic calls to static methods --- composer.json | 4 ++-- extension.neon | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 111c26c..281945f 100644 --- a/composer.json +++ b/composer.json @@ -8,13 +8,13 @@ "require": { "php": ">=8.3", "ibexa/core": "~6.0.x-dev || ^6.0", - "ibexa/doctrine-schema": "~6.0.x-dev || ^6.0" + "ibexa/doctrine-schema": "~6.0.x-dev || ^6.0", + "phpstan/phpstan-strict-rules": "^2" }, "require-dev": { "ibexa/code-style": "~2.0.0", "phpstan/phpstan": "^2", "phpstan/phpstan-phpunit": "^2", - "phpstan/phpstan-strict-rules": "^2", "phpstan/phpstan-symfony": "^2", "phpunit/phpunit": "^11.5" }, diff --git a/extension.neon b/extension.neon index 5f1b453..92e6949 100644 --- a/extension.neon +++ b/extension.neon @@ -8,3 +8,5 @@ parameters: rules: - Ibexa\PHPStan\Rules\NoConfigResolverParametersInConstructorRule - Ibexa\PHPStan\Rules\RequireClosureReturnTypeRule + - PHPStan\Rules\StrictCalls\DynamicCallOnStaticMethodsRule + - PHPStan\Rules\StrictCalls\DynamicCallOnStaticMethodsCallableRule