Lines Matching refs:type

2 Strict scalar type basics
38 function type($value) {
50 foreach ($functions as $type => $function) {
51 echo PHP_EOL, "Testing '$type' type:", PHP_EOL;
54 echo PHP_EOL . "*** Trying ", type($value), " value", PHP_EOL;
65 Testing 'int' type:
71 *** Caught Argument 1 passed to {closure}() must be of the type integer, float given, called in %s …
74 *** Caught Argument 1 passed to {closure}() must be of the type integer, string given, called in %s…
77 *** Caught Argument 1 passed to {closure}() must be of the type integer, boolean given, called in %…
80 *** Caught Argument 1 passed to {closure}() must be of the type integer, boolean given, called in %…
83 *** Caught Argument 1 passed to {closure}() must be of the type integer, null given, called in %s o…
86 *** Caught Argument 1 passed to {closure}() must be of the type integer, array given, called in %s …
89 *** Caught Argument 1 passed to {closure}() must be of the type integer, object given, called in %s…
92 *** Caught Argument 1 passed to {closure}() must be of the type integer, resource given, called in …
94 Testing 'float' type:
103 *** Caught Argument 1 passed to {closure}() must be of the type float, string given, called in %s o…
106 *** Caught Argument 1 passed to {closure}() must be of the type float, boolean given, called in %s …
109 *** Caught Argument 1 passed to {closure}() must be of the type float, boolean given, called in %s …
112 *** Caught Argument 1 passed to {closure}() must be of the type float, null given, called in %s on …
115 *** Caught Argument 1 passed to {closure}() must be of the type float, array given, called in %s on…
118 *** Caught Argument 1 passed to {closure}() must be of the type float, object given, called in %s o…
121 *** Caught Argument 1 passed to {closure}() must be of the type float, resource given, called in %s…
123 Testing 'string' type:
126 *** Caught Argument 1 passed to {closure}() must be of the type string, integer given, called in %s…
129 *** Caught Argument 1 passed to {closure}() must be of the type string, float given, called in %s o…
135 *** Caught Argument 1 passed to {closure}() must be of the type string, boolean given, called in %s…
138 *** Caught Argument 1 passed to {closure}() must be of the type string, boolean given, called in %s…
141 *** Caught Argument 1 passed to {closure}() must be of the type string, null given, called in %s on…
144 *** Caught Argument 1 passed to {closure}() must be of the type string, array given, called in %s o…
147 *** Caught Argument 1 passed to {closure}() must be of the type string, object given, called in %s …
150 *** Caught Argument 1 passed to {closure}() must be of the type string, resource given, called in %…
152 Testing 'bool' type:
155 *** Caught Argument 1 passed to {closure}() must be of the type boolean, integer given, called in %…
158 *** Caught Argument 1 passed to {closure}() must be of the type boolean, float given, called in %s …
161 *** Caught Argument 1 passed to {closure}() must be of the type boolean, string given, called in %s…
170 *** Caught Argument 1 passed to {closure}() must be of the type boolean, null given, called in %s o…
173 *** Caught Argument 1 passed to {closure}() must be of the type boolean, array given, called in %s …
176 *** Caught Argument 1 passed to {closure}() must be of the type boolean, object given, called in %s…
179 *** Caught Argument 1 passed to {closure}() must be of the type boolean, resource given, called in …