Add the ability to cast an object to mixed
type
#890
Labels
compiler
Feature related to compiler
enhancement
New feature or request
missing functionality
Missing PHP functions, classes, constants and etc
For now, KPHP shows the following error:
This functionality assumes two tasks:
Talking about mixed implementation, we should add
OBJECT
value tomixed::type
.In layout:
mixed.storage
should contain a pointer to an object.Key note: for all classes, that are cast to
mixed
, we should generate the following code(A
class from previous snippet:It will allow us to do the following:
--> (pseudocode)
The text was updated successfully, but these errors were encountered: