|
58 | 58 |
|
59 | 59 | ['testNull', 'null', true, true, '8.2'], |
60 | 60 |
|
61 | | - ['testClassEntry', 'class_name', false, true, '7.4'], |
62 | | - ['testClassEntryOptional', 'class_name', false, false, '7.4'], |
63 | | - ['testClassEntryNullable', 'class_name', true, true, '7.4'], |
| 61 | + ['testClassEntry', 'class_name', false, true, '8.0'], |
| 62 | + ['testClassEntryOptional', 'class_name', false, false, '8.0'], |
| 63 | + ['testClassEntryNullable', 'class_name', true, true, '8.0'], |
64 | 64 | ]; |
65 | 65 |
|
66 | 66 | // typehints |
|
110 | 110 | ['returnCallableNullable', 'callable', true], |
111 | 111 | ['returnIterable', 'iterable', false], |
112 | 112 | ['returnIterableNullable', 'iterable', true], |
113 | | - ['returnMixed', 'mixed', true, '7.4'], |
| 113 | + ['returnMixed', 'mixed', true, '8.0'], |
114 | 114 | ['returnNever', 'never', false, '8.1'], |
115 | 115 | ['returnVoid', 'void', false], |
116 | | - ['returnClassEntry', 'class_name', false, '7.4'], |
117 | | - ['returnClassEntryNullable', 'class_name', true, '7.4'], |
| 116 | + ['returnClassEntry', 'class_name', false, '8.0'], |
| 117 | + ['returnClassEntryNullable', 'class_name', true, '8.0'], |
118 | 118 | ]; |
119 | 119 | echo PHP_EOL . 'Testing return typehints' . PHP_EOL; |
120 | 120 | $cls = new \IntegrationTest\TypeHints\ReturnTypeHintTest(); |
@@ -155,15 +155,15 @@ public function setValue($value): void { |
155 | 155 |
|
156 | 156 | $argumentDefaultValueProvider = [ |
157 | 157 | // <method>, <expected default value>, <(optional) min php version> |
158 | | - ['stringDefault', 'foobarbaz', 'string', '7.4'], |
159 | | - ['stringConstantDefault', PHP_VERSION, 'string', '7.4'], |
160 | | - ['boolDefaultTrue', true, 'boolean', '7.4'], |
161 | | - ['boolDefaultFalse', false, 'boolean', '7.4'], |
162 | | - ['intDefault', 42, 'integer', '7.4'], |
163 | | - ['floatDefault', 3.14159, 'double', '7.4'], |
164 | | - ['arrayDefault', ['a' => 'b'], 'array', '7.4'], |
165 | | - ['iterableDefault', [0 => 1], 'array', '7.4'], |
166 | | - ['mixedDefault', 999, 'integer', '7.4'], |
| 158 | + ['stringDefault', 'foobarbaz', 'string', '8.0'], |
| 159 | + ['stringConstantDefault', PHP_VERSION, 'string', '8.0'], |
| 160 | + ['boolDefaultTrue', true, 'boolean', '8.0'], |
| 161 | + ['boolDefaultFalse', false, 'boolean', '8.0'], |
| 162 | + ['intDefault', 42, 'integer', '8.0'], |
| 163 | + ['floatDefault', 3.14159, 'double', '8.0'], |
| 164 | + ['arrayDefault', ['a' => 'b'], 'array', '8.0'], |
| 165 | + ['iterableDefault', [0 => 1], 'array', '8.0'], |
| 166 | + ['mixedDefault', 999, 'integer', '8.0'], |
167 | 167 | ]; |
168 | 168 |
|
169 | 169 | echo PHP_EOL . 'Testing argument default values' . PHP_EOL; |
@@ -194,7 +194,7 @@ public function setValue($value): void { |
194 | 194 | ['m', 'mixed', 1.23], |
195 | 195 |
|
196 | 196 | ]; |
197 | | -if (PHP_VERSION_ID >= 70400) { |
| 197 | +if (PHP_VERSION_ID >= 80000) { |
198 | 198 | echo PHP_EOL . 'Testing function typehints' . PHP_EOL; |
199 | 199 | $reflection = new ReflectionFunction('integration_function_typehints'); |
200 | 200 | $params = $reflection->getParameters(); |
|
0 commit comments