
ReflectionMethod
or class property ReflectionProperty
we can now set its accessibility and call it manually without getting any errors.IT Books Reviews and Programming
JavaScript, JAVA, PHP, Android, CSS/HTML
ReflectionMethod
or class property ReflectionProperty
we can now set its accessibility and call it manually without getting any errors.final
to prevent from overriding the constant by the child class. Of course current class constant functionality remains the same.Every PHP internal methods from internal Classes will now contain a return type declarations. This change will impact any case of extending and overriding of internal PHP classes with custom implementations. From 8.1 we will get a deprecation and since 9.0 it will be a Fatal Error.
Local method static variables will now be inherited between multiple objects and even classes if base Class is used as parent Class. Previously each local static var was only related to the current type of Class.
Since PHP 7.4 magic methods of __seralize()
and __unserialize()
were added, since then Serializable interfece is obsolete and in fact broken with new PHP 8.x features. This also includes deprecating of PDO::FETCH_SERIALIZE
flag of PDO object that will be remove completely in PHP 9.
Read morePHP 8.1 – Asynchronous and lightweight thread execution: Fibers