Skip to content

RestoreDefaultNullToNullableTypePropertyRector: skip @readonly phpdoc#5233

Merged
samsonasik merged 2 commits intorectorphp:mainfrom
staabm:skip-restore
Nov 8, 2023
Merged

RestoreDefaultNullToNullableTypePropertyRector: skip @readonly phpdoc#5233
samsonasik merged 2 commits intorectorphp:mainfrom
staabm:skip-restore

Conversation

@staabm
Copy link
Copy Markdown
Contributor

@staabm staabm commented Nov 8, 2023

before this fix rector changed the code in a way which makes phpstan error

@readonly property cannot have a default value.

https://getrector.com/demo/3501e2b7-8e44-44fa-8d2f-b954e3320d60
https://phpstan.org/r/19c64f77-e460-43c8-b504-70f73f3446e6

@staabm staabm marked this pull request as ready for review November 8, 2023 09:25
@staabm staabm requested a review from TomasVotruba as a code owner November 8, 2023 09:25
@samsonasik samsonasik merged commit 437f96a into rectorphp:main Nov 8, 2023
@samsonasik
Copy link
Copy Markdown
Member

Thank you @staabm

@staabm staabm deleted the skip-restore branch November 8, 2023 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants