-
-
Notifications
You must be signed in to change notification settings - Fork 586
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
Allow PHPStan PHPDoc parser 2.0 #1572
Merged
+29
−12
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ | |
"doctrine/instantiator": "^1.3.1 || ^2.0", | ||
"doctrine/lexer": "^2.0 || ^3.0", | ||
"jms/metadata": "^2.6", | ||
"phpstan/phpdoc-parser": "^1.20" | ||
"phpstan/phpdoc-parser": "^1.20 || ^2.0" | ||
}, | ||
"suggest": { | ||
"doctrine/collections": "Required if you like to use doctrine collection types as ArrayCollection.", | ||
|
@@ -37,17 +37,18 @@ | |
"require-dev": { | ||
"ext-pdo_sqlite": "*", | ||
"doctrine/annotations": "^1.14 || ^2.0", | ||
"slevomat/coding-standard": "dev-master#f2cc4c553eae68772624ffd7dd99022343b69c31 as 8.11.9999", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Waiting for slevomat/coding-standard#1713 |
||
"doctrine/coding-standard": "^12.0", | ||
"doctrine/orm": "^2.14 || ^3.0", | ||
"doctrine/persistence": "^2.5.2 || ^3.0", | ||
"doctrine/phpcr-odm": "^1.5.2 || ^2.0", | ||
"jackalope/jackalope-doctrine-dbal": "^1.3", | ||
"ocramius/proxy-manager": "^1.0 || ^2.0", | ||
"phpbench/phpbench": "^1.0", | ||
"phpstan/phpstan": "^1.10.57", | ||
"phpstan/phpstan": "^2.0", | ||
"phpunit/phpunit": "^9.0 || ^10.0 || ^11.0", | ||
"psr/container": "^1.0 || ^2.0", | ||
"rector/rector": "^1.0.0", | ||
"rector/rector": "dev-main#49f448773bbd6b81a57de15a92f25519b241ea20 as 2.0", | ||
"symfony/dependency-injection": "^5.4 || ^6.0 || ^7.0", | ||
"symfony/expression-language": "^5.4 || ^6.0 || ^7.0", | ||
"symfony/filesystem": "^5.4 || ^6.0 || ^7.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
parameters: | ||
excludePaths: | ||
- %currentWorkingDirectory%/src/Handler/UnionHandler.php | ||
- %currentWorkingDirectory%/tests/Fixtures/TypedProperties/ComplexDiscriminatedUnion.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I do wonder if we can support both - 1.X & 2.x. Without it people that are using
slevomat/coding-standard
orrector
will be not able to use new version of serializer.At the moment it is a blocker for me as we need to release some bug for the Union types - but I'm fine with releasing it with only 2.x support after releasing bug fix release - soo we would need to wait ~1 week to merge this one.
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.
that's not possible, as bc break signature, see change https://github.com/schmittjoh/serializer/pull/1572/files#diff-8daba71112686a0487131b9b0f2347a47887f14a6199c712eee72e587e2eba6e
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.
In theory we can have a hacky
if(class_exist(ParserConfig::class))
. It will look terrible but most probably it will do the job :)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.
We can do that indeed :)