Lines Matching refs:type

2 Strict scalar type basics
27 function type($value) {
39 foreach ($functions as $type => $function) {
40 echo PHP_EOL, "Testing '$type' type:", PHP_EOL;
43 echo PHP_EOL . "*** Trying ", type($value), " value", PHP_EOL;
54 Testing 'int' type:
60 *** Caught Argument 1 passed to {closure}() must be of the type int, float given, called in %s on l…
63 *** Caught Argument 1 passed to {closure}() must be of the type int, string given, called in %s on …
66 *** Caught Argument 1 passed to {closure}() must be of the type int, bool given, called in %s on li…
69 *** Caught Argument 1 passed to {closure}() must be of the type int, bool given, called in %s on li…
72 *** Caught Argument 1 passed to {closure}() must be of the type int, null given, called in %s on li…
75 *** Caught Argument 1 passed to {closure}() must be of the type int, array given, called in %s on l…
78 *** Caught Argument 1 passed to {closure}() must be of the type int, object given, called in %s on …
81 *** Caught Argument 1 passed to {closure}() must be of the type int, resource given, called in %s o…
83 Testing 'float' type:
92 *** Caught Argument 1 passed to {closure}() must be of the type float, string given, called in %s o…
95 *** Caught Argument 1 passed to {closure}() must be of the type float, bool given, called in %s on …
98 *** Caught Argument 1 passed to {closure}() must be of the type float, bool given, called in %s on …
101 *** Caught Argument 1 passed to {closure}() must be of the type float, null given, called in %s on …
104 *** Caught Argument 1 passed to {closure}() must be of the type float, array given, called in %s on…
107 *** Caught Argument 1 passed to {closure}() must be of the type float, object given, called in %s o…
110 *** Caught Argument 1 passed to {closure}() must be of the type float, resource given, called in %s…
112 Testing 'string' type:
115 *** Caught Argument 1 passed to {closure}() must be of the type string, int given, called in %s on …
118 *** Caught Argument 1 passed to {closure}() must be of the type string, float given, called in %s o…
124 *** Caught Argument 1 passed to {closure}() must be of the type string, bool given, called in %s on…
127 *** Caught Argument 1 passed to {closure}() must be of the type string, bool given, called in %s on…
130 *** Caught Argument 1 passed to {closure}() must be of the type string, null given, called in %s on…
133 *** Caught Argument 1 passed to {closure}() must be of the type string, array given, called in %s o…
136 *** Caught Argument 1 passed to {closure}() must be of the type string, object given, called in %s …
139 *** Caught Argument 1 passed to {closure}() must be of the type string, resource given, called in %…
141 Testing 'bool' type:
144 *** Caught Argument 1 passed to {closure}() must be of the type bool, int given, called in %s on li…
147 *** Caught Argument 1 passed to {closure}() must be of the type bool, float given, called in %s on …
150 *** Caught Argument 1 passed to {closure}() must be of the type bool, string given, called in %s on…
159 *** Caught Argument 1 passed to {closure}() must be of the type bool, null given, called in %s on l…
162 *** Caught Argument 1 passed to {closure}() must be of the type bool, array given, called in %s on …
165 *** Caught Argument 1 passed to {closure}() must be of the type bool, object given, called in %s on…
168 *** Caught Argument 1 passed to {closure}() must be of the type bool, resource given, called in %s …