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

Error: SilverStripe\Versioned\Versioned.versioned was not found #24

Open
wernerkrauss opened this issue Oct 17, 2023 · 0 comments
Open

Comments

@wernerkrauss
Copy link

When adding the Versioned extension in code like

    private static $extensions = [
        Versioned::class . '.versioned'
    ];

I get the following error:

Class SilverStripe\Versioned\Versioned.versioned was not found while trying to analyse it - discovering symbols is probably not configured properly.

This can be fixed by defining an alias in bootstrap.php like:

class_alias(Versioned::class, Versioned::class . '.versioned');

Maybe those injector alias classes can be handled more elegantly.
beerbohmdo added a commit to beerbohmdo/silverstripe-phpstan that referenced this issue Feb 14, 2024
beerbohmdo added a commit to beerbohmdo/silverstripe-phpstan that referenced this issue Feb 14, 2024
beerbohmdo added a commit to beerbohmdo/silverstripe-phpstan that referenced this issue Feb 16, 2024
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

No branches or pull requests

1 participant