Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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
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.

3 participants