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

Helpers are not loaded #44

Open
juizmill opened this issue Jan 24, 2023 · 3 comments
Open

Helpers are not loaded #44

juizmill opened this issue Jan 24, 2023 · 3 comments

Comments

@juizmill
Copy link

I don't know why but it's not loading some helpers.

Is there something I should configure?

image

.neon

image

service-manager.php

image

@Slamdunk
Copy link
Owner

I can't tell without the access on the whole project, and I don't want it.

Run PHPStan in debug mode with no parallel processing and try to figure it out.
If you find any big in this repo, any PR is welcome.

@juizmill
Copy link
Author

juizmill commented Apr 2, 2023

I noticed that it is correctly loading the helpers of Laminas but the ones I did are not being loaded for phpstan

I'm following the Laminas documentation https://docs.laminas.dev/laminas-view/helpers/advanced-usage/

Does anyone have any tips?

@earthiverse
Copy link

I had a similar problem.

I had code that had something like this in the config (which works fine in production):

[
    'factories' => [
        'SchemeInputManager' => SchemeInputManagerFactory::class,
    ],
];

Using the class string in factories, and adding the previous string to aliases fixed it.

[
    'aliases' => [
        'SchemeInputManager' => SchemeInputManager::class,
    ],
    'factories' => [
        SchemeInputManager::class => SchemeInputManagerFactory::class,
    ],
];

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

3 participants