rfc:static-aviz
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
rfc:static-aviz [2024/10/23 05:24] – created crell | rfc:static-aviz [2025/02/27 20:51] (current) – Close the vote crell | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2024-10-23 | * Date: 2024-10-23 | ||
* Author: Ilija Tovilo (tovilo.ilija@gmail.com), | * Author: Ilija Tovilo (tovilo.ilija@gmail.com), | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
Line 13: | Line 13: | ||
All behavior described in the Asymmetric Visibility v2 RFC (linked above) for object properties will apply for static properties in the exact same way. See that RFC for complete details, as they are identical here. | All behavior described in the Asymmetric Visibility v2 RFC (linked above) for object properties will apply for static properties in the exact same way. See that RFC for complete details, as they are identical here. | ||
+ | |||
+ | <code php> | ||
+ | class Example | ||
+ | { | ||
+ | public private(set) static string $classTitle = ' | ||
+ | | ||
+ | // Implicitly public-read, | ||
+ | protected(set) static int $counter = 0; | ||
+ | | ||
+ | public static function changeName(string $name): void | ||
+ | { | ||
+ | // From private scope, so this is allowed. | ||
+ | self:: | ||
+ | } | ||
+ | } | ||
+ | |||
+ | print Example:: | ||
+ | |||
+ | Example:: | ||
+ | </ | ||
+ | |||
+ | Note that some aviz functionality relates to '' | ||
+ | |||
+ | ==== Exclusions ==== | ||
+ | |||
+ | Of note, '' | ||
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
Line 32: | Line 58: | ||
2/3 yes or no vote. | 2/3 yes or no vote. | ||
+ | |||
+ | Vote opened 12 February 2025 | ||
+ | Vote closes 26 February 2025 | ||
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
+ | |||
===== Patches and Tests ===== | ===== Patches and Tests ===== |
rfc/static-aviz.1729661063.txt.gz · Last modified: 2024/10/23 05:24 by crell