We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 594a52b commit dfbdd70Copy full SHA for dfbdd70
rules/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector.php
@@ -51,11 +51,11 @@ public function getNodeTypes(): array
51
*/
52
public function refactor(Node $node): ?Ternary
53
{
54
- static $currentFile = $this->file;
+ static $currentFile = null;
55
56
- if ($currentFile !== $this->file) {
+ if ($currentFile !== $this->file->getFilePath()) {
57
$this->counter = 0;
58
- $currentFile = $this->file;
+ $currentFile = $this->file->getFilePath();
59
}
60
61
if ($node instanceof MethodCall || $node instanceof PropertyFetch) {
0 commit comments