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

[Config] Provide more precise phpdoc for FileLocatorInterface::locate() #53670

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

VincentLanglet
Copy link
Contributor

Q A
Branch? 6.4
Bug fix? ?
New feature? ?
Deprecations? no
Issues Fix #...
License MIT

When working with psalm/phpstan, they believe $locator->locate('...'); returns possibly an array which is not true.
This can be defined with @psalm-return annotation that Symfony started to integrate in the code base.

@carsonbot carsonbot added this to the 6.4 milestone Jan 29, 2024
@OskarStark OskarStark changed the title [Config] Provide more precise phpdoc for FileLocatorInterface::locate [Config] Provide more precise phpdoc for FileLocatorInterface::locate() Jan 30, 2024
@nicolas-grekas
Copy link
Member

Thank you @VincentLanglet.

@nicolas-grekas nicolas-grekas merged commit cb68bf3 into symfony:6.4 Jan 30, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants