Timm Friebe
Timm Friebe
Add `||=` and `&&=` operators accompanying the `??=` operator: ```php $a ||= $b; // equivalent of $a || ($a= $b); $a &&= $b; // equivalent of $a && ($a= $b);...
As noted in the "Future Scope" section of the property hooks RFC, [reusable package hooks](https://wiki.php.net/rfc/property-hooks#reusable_hooks) are not part of the first RFC, but the authors @iluuu1994 and @Crell envision it...
How about using `::namespace` for namespace resolution just like `::class`? Example: ```php
Inspired by https://externals.io/message/119470#119488 and https://wiki.php.net/rfc/local_variable_types ## What we would like to achieve ```php int $i= 0; $i= 'Test'; // Should throw an exception ``` ## How it can be implemented...
See https://wiki.php.net/rfc/dnf_types, accepted in PHP 8.2
Compilers, interpreters, and build pipelines supporting Unicode should throw errors or warnings for unterminated bidirectional control characters in comments or string literals, and for identifiers with mixed-script confusable characters. https://trojansource.codes/...
See https://wiki.php.net/rfc/tagged_unions: ```php // Declaration enum Distance { case Kilometers(public int $km); case Miles(public int $miles); } // Usage $walk= Distance::Miles(500); print $walk->miles; // prints "500" ``` The famous "Maybe"...