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

Ignore PHPStan complaining about missing Laravel helper methods. #21

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

charjr
Copy link
Collaborator

@charjr charjr commented Feb 27, 2024

Update the PHPStan.neon file to specifically ignore missing config() and config_path() functions.

Removes (now unnecessary) repetitive phpstan-ignore-next-line annotations.

Lets PHPStan check those lines for other issues. (Case and point: it then began complaining that instantiateBuilders was only returning array instead of array so I've added an array_filter to assert that).

- These methods will be present within any Laravel project.
@charjr charjr merged commit ede6935 into main Feb 27, 2024
29 checks passed
@charjr charjr deleted the ignore-missing-laravel-methods branch February 27, 2024 11:20
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

Successfully merging this pull request may close these issues.

1 participant