Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Php80] Handle crash on ClassOnObjectRector + GetDebugTypeRector #4483

Merged
merged 2 commits into from
Jul 11, 2023

Conversation

samsonasik
Copy link
Member

@samsonasik samsonasik requested a review from TomasVotruba as a code owner July 11, 2023 22:50
@samsonasik
Copy link
Member Author

samsonasik commented Jul 11, 2023

It show warning in unit test:

W                                                                   1 / 1 (100%)

Time: 00:00.664, Memory: 72.50 MB

1 test triggered 2 PHP warnings:

1) Rector\Core\Tests\Issues\ClassOnObjectGetDebugType\ClassOnObjectGetDebugTypeTest::test with data set #0
* Undefined property: PhpParser\Node\Expr\Variable::$args
  /Users/samsonasik/www/rector-src/rules/Php80/Rector/Ternary/GetDebugTypeRector.php:170

* Trying to access array offset on value of type null
  /Users/samsonasik/www/rector-src/rules/Php80/Rector/Ternary/GetDebugTypeRector.php:170

/Users/samsonasik/www/rector-src/tests/Issues/ClassOnObjectGetDebugType/ClassOnObjectGetDebugTypeTest.php:14

see https://github.com/rectorphp/rector-src/actions/runs/5525624780/jobs/10079443737#step:5:25

@samsonasik
Copy link
Member Author

Fixed 🎉 /cc @canvural

@samsonasik
Copy link
Member Author

@samsonasik samsonasik merged commit 5dfb621 into main Jul 11, 2023
@samsonasik samsonasik deleted the get-debug branch July 11, 2023 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[UP_TO_PHP_81] System error: "Undefined property: PhpParser\Node\Expr\Variable::$args
1 participant