6faa7cbea1
Adds runtime support for non-class typehints. Typedefs are introduced using type statements, and autoloaded via a new autoload map entry. Shapes are parsed but the structure is currently thrown away and treated as arrays at runtime. This extends the NamedEntity structure to sometimes cache 'NameDefs', which are either Typedef*'s or Class*'s. VerifyParamType now has to check for typedefs if an object fails a class check, or when checking non-Object types against a non-primitive type name that isn't a class.
4 linhas
186 B
Plaintext
4 linhas
186 B
Plaintext
HipHop Warning: Constants may only evaluate to scalar values
|
|
HipHop Warning: Constants may only evaluate to scalar values
|
|
HipHop Warning: Constants may only evaluate to scalar values
|