Skip to content

[Validator] Fix File::$extensions’ PHPDoc #51710

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

Merged

Conversation

MatTheCat
Copy link
Contributor

@MatTheCat MatTheCat commented Sep 21, 2023

Q A
Branch? 6.3
Bug fix? yes
New feature? no
Deprecations? no
Tickets N/A
License MIT
Doc PR N/A

The documentation’s example is incompatible with the current PHPDoc because keys can be integers and strings in a single array:

image

It would now accept string[][] as well, but a false positive seems better to me than a false negative.

@MatTheCat MatTheCat force-pushed the file-constraint-extensions-phpdoc branch from 95e5e01 to 92de129 Compare September 21, 2023 09:56
@MatTheCat MatTheCat changed the title [Validator] Fix File::$extensions’s PHPDoc [Validator] Fix File::$extensions’ PHPDoc Sep 21, 2023
@nicolas-grekas nicolas-grekas added this to the 6.3 milestone Sep 25, 2023
@carsonbot carsonbot changed the title [Validator] Fix File::$extensions’ PHPDoc Fix File::$extensions’ PHPDoc Sep 25, 2023
@carsonbot carsonbot changed the title Fix File::$extensions’ PHPDoc [Validator] Fix File::$extensions’ PHPDoc Sep 25, 2023
@MatTheCat MatTheCat force-pushed the file-constraint-extensions-phpdoc branch from 92de129 to 2dd8ad2 Compare September 29, 2023 07:41
@nicolas-grekas
Copy link
Member

Thank you @MatTheCat.

@nicolas-grekas nicolas-grekas merged commit 4f085f8 into symfony:6.3 Sep 29, 2023
@MatTheCat MatTheCat deleted the file-constraint-extensions-phpdoc branch September 29, 2023 10:02
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.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy