Skip to content

Commit 7d0d826

Browse files
Firehedclaude
authored andcommitted
Allow GMP in increment/decrement operations
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 679f531 commit 7d0d826

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Rules/Operators/InvalidIncDecOperationRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function processNode(Node $node, Scope $scope): array
113113
$deprecatedString = true;
114114
}
115115

116-
$allowedTypes = [new FloatType(), new IntegerType(), $string, new ObjectType('SimpleXMLElement')];
116+
$allowedTypes = [new FloatType(), new IntegerType(), $string, new ObjectType('SimpleXMLElement'), new ObjectType('GMP')];
117117
$deprecatedNull = false;
118118
if (
119119
!$this->phpVersion->deprecatesDecOnNonNumericString()

0 commit comments

Comments
 (0)