From 5f492b86391333dc2bf026292d839108653c6808 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Thu, 9 Oct 2025 20:49:27 +0200 Subject: [PATCH] Fix PHPStan error --- phpstan.neon | 5 ----- .../StmtsAwareInterface/ExpectsMethodCallDecorator.php | 2 -- 2 files changed, 7 deletions(-) diff --git a/phpstan.neon b/phpstan.neon index c4b2e1b5..36ae3df3 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -52,8 +52,3 @@ parameters: - message: '#Cannot call method getName\(\) on PHPStan\\Reflection\\ClassReflection\|null#' path: rules/CodeQuality/Reflection/MethodParametersAndReturnTypesResolver.php - - # due to https://github.com/rectorphp/type-perfect/pull/69 - - - message: '#Parameters should have "PhpParser\\Node\\Stmt\\Expression" types as the only types passed to this method#' - path: rules/PHPUnit100/Rector/StmtsAwareInterface/ExpectsMethodCallDecorator.php diff --git a/rules/PHPUnit100/Rector/StmtsAwareInterface/ExpectsMethodCallDecorator.php b/rules/PHPUnit100/Rector/StmtsAwareInterface/ExpectsMethodCallDecorator.php index 39f71a1e..95cfce8d 100644 --- a/rules/PHPUnit100/Rector/StmtsAwareInterface/ExpectsMethodCallDecorator.php +++ b/rules/PHPUnit100/Rector/StmtsAwareInterface/ExpectsMethodCallDecorator.php @@ -28,8 +28,6 @@ public function __construct( * Replace $this->expects(...) * with * $expects = ... - * - * @param Expression $expression */ public function decorate(Expression $expression): MethodCall|StaticCall|null {