Skip to content

Commit eacb403

Browse files
phpstan-botclaude
andcommitted
Fix coding standard violations in CastStringHandler and MethodThrowPointHelper
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d898b9a commit eacb403

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/Analyser/ExprHandler/CastStringHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function processExpr(NodeScopeResolver $nodeScopeResolver, Stmt $stmt, Ex
6464
$toStringMethod,
6565
$toStringMethod->getOnlyVariant(),
6666
new Expr\MethodCall($expr->expr, new Identifier('__toString')),
67-
$scope
67+
$scope,
6868
);
6969
if ($throwPoint !== null) {
7070
$throwPoints[] = $throwPoint;

src/Analyser/ExprHandler/Helper/MethodThrowPointHelper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use ReflectionFunction;
1717
use ReflectionMethod;
1818
use Throwable;
19+
use function in_array;
1920

2021
#[AutowiredService]
2122
final class MethodThrowPointHelper

0 commit comments

Comments
 (0)