Skip to content

Conversation

@JanTvrdik
Copy link
Member

Summary

  • Fix shipmonk.publicPropertyNotReadonly to support PHP 8.4 asymmetric visibility
  • Do not report errors for properties using private(set) or protected(set) modifiers, as these are effectively readonly from outside the class

Fixes #319

Test plan

  • Added test cases for public private(set), public protected(set), and public public(set) properties
  • Verified existing tests still pass

Do not report publicPropertyNotReadonly error when property uses
private(set) or protected(set) modifiers, as these properties are
effectively readonly from outside the class.

Fixes #319
Required for asymmetric visibility support (isPrivateSet/isProtectedSet methods).
@JanTvrdik JanTvrdik force-pushed the fix-asymmetric-visibility-319 branch from 4163e83 to 15f29df Compare November 27, 2025 11:45
@JanTvrdik JanTvrdik requested a review from janedbal November 27, 2025 11:51
@janedbal janedbal merged commit 057cf4b into master Nov 27, 2025
26 checks passed
@janedbal janedbal deleted the fix-asymmetric-visibility-319 branch November 27, 2025 12:04
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.

shipmonk.publicPropertyNotReadonly does not support asymmetric visibility

3 participants