Skip to content

Get leaveNode() returned invalid value of type integer error, if parent class does not exist #6873

@norgeindian

Description

@norgeindian

Bug Report

Subject Details
Rector version 0.12.8

If a class is extending another class, which does not exist, one gets the error message ``

Minimal PHP Code Causing Issue

https://getrector.org/demo/1ec5cca2-63b0-66e2-be36-43146ba5c048

Expected Behaviour

To be honest, I don't know what the best behavior would be in this case, but I think it would be a good start to show a more detailed error message and make sure, that the scan does not stop.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions