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

Update to doctrine/coding-standard 10 on 4.0.x #5632

Merged
merged 4 commits into from Aug 30, 2022

Conversation

greg0ire
Copy link
Member

To be followed by a git merge origin/3.5.x --strategy ours

Comment on lines 25 to 26
private readonly ?string $cacheKey = null,
private readonly ?CacheItemPoolInterface $resultCache = null
private readonly string|null $cacheKey = null,
private readonly CacheItemPoolInterface|null $resultCache = null,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't believe that union types should be enforced over the nullable ones. We discussed it recently in another thread.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please open an issue on the CS repo? I think that's were the issue needs to be discussed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@greg0ire
Copy link
Member Author

greg0ire commented Aug 29, 2022

Psalm suddenly chokes on Connection&MockObject

Psalm 5.0.0-beta1 doesn't have the issue but comes with other errors…

Copy link
Member

@morozov morozov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@greg0ire
Copy link
Member Author

I'll revert the change about union types that way we don't have to wait for the resolution of doctrine/coding-standard#288 to merge this.

One rule is excluded temporarily, pending a discussion on the standard
repository.
They are not supported by Psalm yet.
@greg0ire greg0ire marked this pull request as ready for review August 29, 2022 20:42
@greg0ire greg0ire requested a review from morozov August 29, 2022 20:42
@greg0ire greg0ire merged commit 5251db5 into doctrine:4.0.x Aug 30, 2022
@greg0ire greg0ire deleted the cs-update-4 branch August 30, 2022 05:50
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants