Skip to content

Larastan compatibility: bootstrapFiles not loaded due to early constructor reflection #62

@kayw-geek

Description

@kayw-geek

Hi @staabm, @Khartir, I encountered an issue that's possibly related to this.

I'm using both the phpstan-safe-rule and larastan extensions.

Larastan requires bootstrapFiles to be loaded in order to work correctly.
However, JsonThrowOnErrorDynamicReturnTypeExtension uses reflection in its constructor, which causes Larastan to execute LarastanStubFilesExtension.php before the bootstrapFiles are loaded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions