Skip to content

Invalid configuration: Service '0806': #169

@JulianAtkins

Description

@JulianAtkins

Hello!

I have PHPStan 2.1.33 working fine, and I am trying to add phpstan-deprecation-rules.

At this point I should mention that I'm not using composer.

I added in my phpstan.neon the following:

includes:
    - /projects/phpstan-deprecation-rules/rules.neon

Run phpstan and I get:

Invalid configuration:
Service '0806': Class or interface 'PHPStan\Rules\Deprecations\DeprecatedScopeHelper' not found.

I though I need a bootstrap, so I added one:

    bootstrapFiles:
        - /projects/phpstan-bootstrap.php

But that had no effect whatsoever, still the same error. I think the error appears before the bootstrap is executed.

I'd appreciate some ideas please.

Thank you.

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