mid59 zgłoszeń

Jak działa type system w PHP 8+?

PHP 8 ma union types (int|string), named arguments, match expression, nullsafe operator (?->). PHP 8.1: enum, intersection types, fibers, readonly properties. PHP 8.2: readonly classes, DNF types. PHP ewoluuje ku silnemu typowaniu z zachowaniem dynamiczności.

Więcej pytań z PHP