January 2021
Intermediate to advanced
139 pages
1h 53m
English
Version: 0.9
Date: 2020-03-23
Author: Máté Kocsis, Danack
Implementation: https://github.com/php/php-src/pull/5313
Vote: 50 / 11
PHP 7 gave us scalar types, 7.1 brought nullables, objects were introduced in 7.2, and now union types have arrived in 8. Type information for most function parameters, function returns, and class properties can be declared, but there is still the need for a mixed type. Historically, PHP has allowed for type information to be unspecified, which, in the era of hyperspecification in programming, presents itself ...
Read now
Unlock full access