Skip to content

Conversation

samsonasik
Copy link
Member

@samsonasik samsonasik force-pushed the add-read-only-class-rector branch 2 times, most recently from 2c605d0 to 33c2f92 Compare May 12, 2022 03:47
@samsonasik samsonasik marked this pull request as draft May 12, 2022 03:47
@samsonasik samsonasik force-pushed the add-read-only-class-rector branch from ede6efd to 7ce9170 Compare May 12, 2022 04:01
@samsonasik samsonasik force-pushed the add-read-only-class-rector branch 5 times, most recently from 7ccc36a to 0dc8e9d Compare May 12, 2022 08:37
@samsonasik samsonasik marked this pull request as ready for review May 12, 2022 08:38
@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba it is ready for review.

@samsonasik samsonasik force-pushed the add-read-only-class-rector branch from af7ad8c to a9de1ae Compare May 12, 2022 09:51
@samsonasik
Copy link
Member Author

rebased.

@samsonasik
Copy link
Member Author

I am merging it ;)

@samsonasik samsonasik merged commit 78aaf7e into main May 12, 2022
@samsonasik samsonasik deleted the add-read-only-class-rector branch May 12, 2022 15:45
@TomasVotruba
Copy link
Member

👍

}
}

?>
Copy link
Member

Choose a reason for hiding this comment

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

There should be one more fixture with one readonly property and one normal one

Copy link
Member Author

@samsonasik samsonasik May 12, 2022

Choose a reason for hiding this comment

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

That willl be skipped, i will add more fixture

Copy link
Member Author

Choose a reason for hiding this comment

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

Comment on lines +1 to +8
<?php

namespace Rector\Tests\Php82\Rector\Class_\ReadOnlyClassRector\Fixture;

final class SkipHasWritableProperty
{
private string $property;
}
Copy link
Member

Choose a reason for hiding this comment

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

What about public readonly combination?

Copy link
Member Author

@samsonasik samsonasik May 12, 2022

Choose a reason for hiding this comment

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

That willl be skipped for writable+readonly, i will add more fixture

Copy link
Member Author

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[PHP 8.2] Add readonly classes support
3 participants