Skip to content

Commit

Permalink
Fixed PHPStan signature visibility
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Wright <[email protected]>
  • Loading branch information
betterthanclay committed Aug 22, 2024
1 parent 84ea3ff commit 9766e99
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 5 additions & 1 deletion ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
declare(strict_types=1);

use Symplify\EasyCodingStandard\Config\ECSConfig;
use PhpCsFixer\Fixer\ClassNotation\ProtectedToPrivateFixer;

return ECSConfig::configure()
->withPaths([
Expand All @@ -13,4 +14,7 @@
->withPreparedSets(
cleanCode: true,
psr12: true
);
)
->withSkip([
ProtectedToPrivateFixer::class
]);
2 changes: 1 addition & 1 deletion src/Exceptional.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ private function __construct()
* @param array<string> $interfaces
* @param array<string> $traits
*/
private static function _phpstan(
protected static function _phpstan(
?string $message = null,
?array $params = [],
mixed $data = null,
Expand Down

0 comments on commit 9766e99

Please sign in to comment.