From 9766e99d3c692e142fcba63271fbdb634d789846 Mon Sep 17 00:00:00 2001 From: Tom Wright Date: Thu, 22 Aug 2024 13:46:17 +0000 Subject: [PATCH] Fixed PHPStan signature visibility Signed-off-by: Tom Wright --- CHANGELOG.md | 2 ++ ecs.php | 6 +++++- src/Exceptional.php | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1922437..4b65d7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +* Fixed PHPStan signature visibility + ## v0.4.7 (2024-08-22) * Added generic call signature for PHPStan * Added @phpstan-require-implements constraints diff --git a/ecs.php b/ecs.php index b904391..5133ba2 100644 --- a/ecs.php +++ b/ecs.php @@ -5,6 +5,7 @@ declare(strict_types=1); use Symplify\EasyCodingStandard\Config\ECSConfig; +use PhpCsFixer\Fixer\ClassNotation\ProtectedToPrivateFixer; return ECSConfig::configure() ->withPaths([ @@ -13,4 +14,7 @@ ->withPreparedSets( cleanCode: true, psr12: true - ); + ) + ->withSkip([ + ProtectedToPrivateFixer::class + ]); diff --git a/src/Exceptional.php b/src/Exceptional.php index c4287be..008430b 100644 --- a/src/Exceptional.php +++ b/src/Exceptional.php @@ -30,7 +30,7 @@ private function __construct() * @param array $interfaces * @param array $traits */ - private static function _phpstan( + protected static function _phpstan( ?string $message = null, ?array $params = [], mixed $data = null,