Skip to content

Commit ee7bfd9

Browse files
committed
fix phpstan
1 parent 9051024 commit ee7bfd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rules/DowngradePhp81/Rector/StmtsAwareInterface/DowngradeSetAccessibleReflectionPropertyRector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@ private function isSetAccessibleIfMethodCall(?Stmt $stmt): bool
196196
return false;
197197
}
198198

199-
if (! $stmt->cond->left instanceof ConstFetch && ! $this->isName($stmt->cond->left->name, 'PHP_VERSION_ID')) {
199+
if (! $stmt->cond->left instanceof ConstFetch || ! $this->isName($stmt->cond->left->name, 'PHP_VERSION_ID')) {
200200
return false;
201201
}
202202

203-
if (! $stmt->cond->right instanceof Int_ && $stmt->cond->right->value !== 80100) {
203+
if (! $stmt->cond->right instanceof Int_ || $stmt->cond->right->value !== 80100) {
204204
return false;
205205
}
206206

0 commit comments

Comments
 (0)