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

Infer non-empty-string on string functions #6792

Closed
staabm opened this issue Mar 10, 2022 · 2 comments
Closed

Infer non-empty-string on string functions #6792

staabm opened this issue Mar 10, 2022 · 2 comments

Comments

@staabm
Copy link
Contributor

staabm commented Mar 10, 2022

Feature request

Inspired by #6788

I figured we could do similar things for string functions
https://phpstan.org/r/11508629-cc37-4da8-8e3d-45384a13619b
(All types reported should be non-empty-string)

we should be able to do similar things for implode() and non-empty-array.
Could also work for fnmatch

@ondrejmirtes
Copy link
Member

Implemented: phpstan/phpstan-src#1068

@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 May 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants