Skip to content

Commit a45a0fd

Browse files
committed
cleanup
1 parent ffe4ab4 commit a45a0fd

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/Rules/Arrays/NonexistentOffsetInArrayDimFetchRule.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ public function processNode(Node $node, Scope $scope): array
134134
if (
135135
$node->dim instanceof Node\Expr\FuncCall
136136
&& $node->dim->name instanceof Node\Name
137-
&& !$node->dim->isFirstClassCallable()
138137
&& $node->dim->name->toLowerString() === 'array_rand'
139138
&& count($node->dim->getArgs()) >= 1
140139
) {
@@ -163,7 +162,6 @@ public function processNode(Node $node, Scope $scope): array
163162
$node->dim instanceof Node\Expr\BinaryOp\Minus
164163
&& $node->dim->left instanceof Node\Expr\FuncCall
165164
&& $node->dim->left->name instanceof Node\Name
166-
&& !$node->dim->left->isFirstClassCallable()
167165
&& in_array($node->dim->left->name->toLowerString(), ['count', 'sizeof'], true)
168166
&& count($node->dim->left->getArgs()) >= 1
169167
&& $node->dim->right instanceof Node\Scalar\Int_

0 commit comments

Comments
 (0)