Nov 29, 2019

samdark

PHP 7.4

PHP 7.4 was released. Yii can benefit from new features:

  • Typed properties - would simplify checks overall and will make code stricter. Potentially we can adopt typed DTOs.
  • Limited return type covariance and argument type contravariance - would allow to seamlessly add types for PSR interfaces (may not be needed since PHP-FIG is planning to update interfaces).
  • Ability to throw __toString() exceptions - would simplify error handler and make widgets more reliable.

There's a poll about upping minimum required version for Yii 3.

Comments (0)

No comments yet.