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

file reference type #9367

Closed
puggan opened this issue May 28, 2023 · 3 comments
Closed

file reference type #9367

puggan opened this issue May 28, 2023 · 3 comments

Comments

@puggan
Copy link

puggan commented May 28, 2023

Feature request

Some function takes a file path as argument, for exemple a template file, if phpstan could warn if the remplate file is missing/misspelled whould be greate. exemple if a parameter has the type file-reference<../views/, .blade.php> and the parameter given is 'tables/generic' phpstan check if the gile '../views/tables/generic.blade.php' exists.

Did PHPStan help you today? Did it make you happy in any way?

every day

@mad-briller
Copy link
Contributor

Larastan already supports this for laravel with the view-string type

Check it out : https://github.com/nunomaduro/larastan

@ondrejmirtes
Copy link
Member

Yeah, looks like you want this for Laravel which Larastan can already do :)

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants