-
-
Notifications
You must be signed in to change notification settings - Fork 737
Closed
rectorphp/rector-phpunit
#583Labels
Description
Bug Report
| Subject | Details |
|---|---|
| Rector version | 2.2.8 |
in some classes of our project, rector started crashing with 2.2.8.
when analyzing those files in isolation I can't reproduce the crash though.
the crash is triggered in php-parser.
when adding a debug breakpoint, I can see that Rector tries to print a instance of Rector\PhpParser\Node\CustomNode\FileWithoutNamespace with a $startPos and $endPos of -1, which both violate this assert.
Minimal PHP Code Causing Issue
I can't figure out a small reproducer
Expected Behaviour
no crash