Warning: "integer" will be interpreted as a class name. Did you mean "int"? Write "\integer" to suppress this warning in /in/fJgLA on line 19
Warning: "boolean" will be interpreted as a class name. Did you mean "bool"? Write "\boolean" to suppress this warning in /in/fJgLA on line 20
Warning: "double" will be interpreted as a class name. Did you mean "float"? Write "\double" to suppress this warning in /in/fJgLA on line 21
Warning: "resource" is not a supported builtin type and will be interpreted as a class name. Write "\resource" to suppress this warning in /in/fJgLA on line 22
Subject {
"valid": [
"int",
"bool",
"array",
"float",
"string",
"iterable",
"callable",
"void",
"object",
"mixed"
],
"invalid": [
"self",
"integer",
"boolean",
"double",
"resource"
]
}
Subject2 {
"valid": [
"INT -> int",
"BOOL -> bool",
"ARRAY -> array",
"FLOAT -> float",
"STRING -> string",
"ITERABLE -> iterable",
"CALLABLE -> callable",
"VOID -> void",
"OBJECT -> object",
"MIXED -> mixed"
],
"invalid": [
"SELF",
"INTEGER",
"BOOLEAN",
"DOUBLE",
"RESOURCE"
]
}
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Warning: "integer" will be interpreted as a class name. Did you mean "int"? Write "\integer" to suppress this warning in /in/fJgLA on line 19
Warning: "boolean" will be interpreted as a class name. Did you mean "bool"? Write "\boolean" to suppress this warning in /in/fJgLA on line 20
Warning: "double" will be interpreted as a class name. Did you mean "float"? Write "\double" to suppress this warning in /in/fJgLA on line 21
Warning: "resource" is not a supported builtin type and will be interpreted as a class name. Write "\resource" to suppress this warning in /in/fJgLA on line 22
Subject {
"valid": [
"int",
"bool",
"array",
"float",
"string",
"iterable",
"callable",
"void",
"object",
"mixed"
],
"invalid": [
"self",
"integer",
"boolean",
"double",
"resource"
]
}
Subject2 {
"valid": [
"INT -> int",
"BOOL -> bool",
"ARRAY -> array",
"FLOAT -> float",
"STRING -> string",
"ITERABLE -> iterable",
"CALLABLE -> callable",
"VOID -> void",
"OBJECT -> object",
"MIXED -> mixed"
],
"invalid": [
"SELF",
"INTEGER",
"BOOLEAN",
"DOUBLE",
"RESOURCE"
]
}