|
48 | 48 | ['testCallableOptional', 'callable', false, false], |
49 | 49 | ['testCallableNullable', 'callable', true, true], |
50 | 50 |
|
51 | | - ['testObject', 'object', false, true, '7.1'], |
52 | | - ['testObjectOptional', 'object', false, false, '7.1'], |
53 | | - ['testObjectNullable', 'object', true, true, '7.1'], |
| 51 | + ['testObject', 'object', false, true, '7.2'], |
| 52 | + ['testObjectOptional', 'object', false, false, '7.2'], |
| 53 | + ['testObjectNullable', 'object', true, true, '7.2'], |
54 | 54 |
|
55 | 55 | ['testIterable', 'iterable', false, true, '7.1'], |
56 | 56 | ['testIterableOptional', 'iterable', false, false, '7.1'], |
|
79 | 79 | assert_eq(1, count($params), 'has 1 param'); |
80 | 80 | $param = $params[0]; |
81 | 81 | $type = $param->getType(); |
82 | | - if (PHP_VERSION_ID >= 70100) { |
| 82 | + if (PHP_VERSION_ID >= 70200) { |
83 | 83 | assert_eq($input[1], (string)$type->getName(), sprintf('%s has typehint type', $input[0])); |
84 | 84 | assert_eq($input[2], $type->allowsNull(), sprintf('%s allows null', $input[0])); |
85 | 85 | assert_eq($input[3], !$param->isOptional(), sprintf('%s is optional', $input[0])); |
|
127 | 127 | } |
128 | 128 | $reflectionMethod = $reflection->getMethod($input[0]); |
129 | 129 | $return = $reflectionMethod->getReturnType(); |
130 | | - if ($input[1] !== 'never' && PHP_VERSION_ID > 70100) { |
| 130 | + if ($input[1] !== 'never' && PHP_VERSION_ID > 70200) { |
131 | 131 | assert_eq($input[1], $return->getName(), sprintf('%s has typehint type', $input[0])); |
132 | 132 | assert_eq($input[2], $return->allowsNull(), sprintf('%s allows null', $input[0])); |
133 | 133 | } |
|
0 commit comments