๐ In today's PHP video workshop, we will see why the promoted constructor property is game-changing in PHP 8!
Adding the access modifier (public
, protected
, private
) before the property name will tell PHP to treat the constructor arguments as "property promotions".
Psst! My Udemy course on how to build a real-example PHP 8 application from scratch is now available! https://www.udemy.com/course/create-real-world-php-webapp-from-scratch/
Happy PHP8 Coding! ๐ค
ย