You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// These create a public-read, protected-write, write-once property.publicprotected(set)readonly string $foo;
publicreadonly string $foo;
readonly string $foo;
// These creates a public-read, private-set, write-once, final property.publicprivate(set)readonly string $foo;
private(set)readonly string $foo;
// These create a public-read, public-write, write-once property.// While use cases for this configuration are likely few, // there's no intrinsic reason it should be forbidden.publicpublic(set)readonly string $foo;
public(set)readonly string $foo;
// These create a private-read, private-write, write-once, final property.privateprivate(set)readonly string $foo;
privatereadonly string $foo;
// These create a protected-read, protected-write, write-once property.protectedprotected(set)readonly string $foo;
protectedreadonly string $foo;
The text was updated successfully, but these errors were encountered:
RFC - https://wiki.php.net/rfc/asymmetric-visibility-v2
The text was updated successfully, but these errors were encountered: