You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I might just not understand how name is supposed to be interpreted here. For array and callable the value of name is \array and \callable, as opposed the other types which just end up as int, string, etc
sorry, I did not have time to check on this issue, I'll be back on it later, but I think it was intentional because an array should be seen as a typing, and the FQN fully qualified name force to search the class from the root namespace, that's why the \array name. The int and string are forget classes.
My first approach was to make an interpreter so this interpretation was in order to make easier the implementation of an interpreter, but in this case it's breaking the file representation - I may certainly introduce a new AST nody type like a ScalarType
The list of valid php type for type hinting function calls is here: http://php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration.types
It appears the parser currently handles everything except for
array
andcallable
(it interprets these as user-defined fully qualified namesThe text was updated successfully, but these errors were encountered: