-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[PropertyInfo] Add PhpStanExtractor
#40457
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
Conversation
aeb982f to
2e08a5b
Compare
|
I would propose to name it PHPStanExtractor |
|
@OskarStark IIRC the current name is more in sync with our coding conventions. |
|
I know for sure, but this could be hard to read/understand because of the word "Php" and the word "Stan", additionally PHPStan is a proper name. IIRC we use sth like ORM instead of Orm, but not 100% sure. I am currently on a phone 📱 Anyway it was just a proposal and a personal opinion, otherwise I would go with PhpstanExtractor then .... |
We do :) I agree with Oscar here. |
How so we deal with other PHPSomething project names? The extractor for PHPDoc is named Oh well, naming things is hard. 😓 |
|
Fair enough :) consistency first. |
|
Stay consistent, because of PhpUnit |
|
How does this compare to using |
Actually,
I do support 2 of them. I'll try to take a look at |
32e2af3 to
2884390
Compare
4f57313 to
560cd06
Compare
4a5236f to
af62a30
Compare
PhpStanExtractor
cdc9c56 to
8bdb91f
Compare
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/PropertyInfo/Extractor/PhpStanExtractor.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/PropertyInfo/Extractor/PhpStanExtractor.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/PropertyInfo/Extractor/PhpStanExtractor.php
Outdated
Show resolved
Hide resolved
8bdb91f to
4651d61
Compare
nicolas-grekas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(with minor cs comments)
4651d61 to
68300c7
Compare
fabpot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I hope you're ready to maintain it as this is a large piece of code :)
68300c7 to
9931c37
Compare
|
Thank you @Korbeil. |
* doctrine/persistence to doctrine/persistence#286 * symfony/property-info to get symfony/symfony#40457
* doctrine/persistence to doctrine/persistence#286 * symfony/property-info to get symfony/symfony#40457
… (colinodell) This PR was merged into the 6.2 branch. Discussion ---------- [PropertyInfo] Fix PhpStanExtractor added version `PhpStanExtractor` was actually added in 5.4: symfony/symfony#40457 (comment) Commits ------- d47d1fc Fix PhpStanExtractor added version
* doctrine/persistence to doctrine/persistence#286 * symfony/property-info to get symfony/symfony#40457
…ace` to `PhpStanExtractor` (mtarld) This PR was merged into the 7.3 branch. Discussion ---------- [PropertyInfo] Add `PropertyDescriptionExtractorInterface` to `PhpStanExtractor` | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | yes | Deprecations? | no | Issues | | License | MIT As mentioned in #40457, the `PhpStanExtractor` should at some point implement the `PropertyDescriptionExtractorInterface`. This PR adds that implementation. Commits ------- bd80f29 [PropertyInfo] Add `PropertyDescriptionExtractorInterface` to `PhpStanExtractor`
This PR will add a PhpStanExtractor that is based on
phpstan/phpdoc-parserlibrary.The PhpStan library allows us to manage union types in collection key values that we don't manage today.
Todo
phpstan/phpdoc-parseris present)Related PR:
serializer-packpackage.