diff --git a/src/Type/Constant/ConstantArrayType.php b/src/Type/Constant/ConstantArrayType.php index adf62f75aa7..b61158e3e60 100644 --- a/src/Type/Constant/ConstantArrayType.php +++ b/src/Type/Constant/ConstantArrayType.php @@ -3191,7 +3191,7 @@ public function describe(VerbosityLevel $level): string $describeValue = function (bool $truncate) use ($level, $arrayName): string { $items = []; $values = []; - $exportValuesOnly = true; + $exportValuesOnly = !$this->shouldNameItsKeys(); foreach ($this->keyTypes as $i => $keyType) { $valueType = $this->valueTypes[$i]; if ($keyType->getValue() !== $i) { @@ -3274,6 +3274,12 @@ function () use ($typeOnlyArrayName, $level): string { ); } + /** With bleeding edge, array{X, Y} is a list, so a shape that might not be one names its keys. */ + private function shouldNameItsKeys(): bool + { + return count($this->keyTypes) > 1 && !$this->isList->yes() && BleedingEdgeToggle::isBleedingEdge(); + } + /** @param bool $namingKeys whether the description names the keys, as a shape does */ private function shouldBeDescribedAsAList(bool $namingKeys = true): bool { @@ -4331,7 +4337,7 @@ public function toPhpDocNode(): TypeNode { $items = []; $values = []; - $exportValuesOnly = true; + $exportValuesOnly = !$this->shouldNameItsKeys(); foreach ($this->keyTypes as $i => $keyType) { if ($keyType->getValue() !== $i) { $exportValuesOnly = false; diff --git a/tests/PHPStan/Analyser/data/param-out.php b/tests/PHPStan/Analyser/data/param-out.php index ebd668effd4..91d8d3ae065 100644 --- a/tests/PHPStan/Analyser/data/param-out.php +++ b/tests/PHPStan/Analyser/data/param-out.php @@ -221,7 +221,7 @@ function foo15() { $manifest, "fooCompare" ); - assertType('array{1, 2, 3}', $manifest); + assertType('array{0: 1, 1: 2, 2: 3}', $manifest); } function fooSpaceship (string $a, string $b): int { @@ -234,7 +234,7 @@ function foo16() { $array, "fooSpaceship" ); - assertType('array{1, 2}', $array); + assertType('array{0: 1, 1: 2}', $array); } function fooShuffle() { diff --git a/tests/PHPStan/Analyser/nsrt/array-is-list-unset.php b/tests/PHPStan/Analyser/nsrt/array-is-list-unset.php index b14b8c97df8..46fd2346c81 100644 --- a/tests/PHPStan/Analyser/nsrt/array-is-list-unset.php +++ b/tests/PHPStan/Analyser/nsrt/array-is-list-unset.php @@ -18,7 +18,7 @@ function () { assertType('array{1, 2, 3}', $a); assertType('true', array_is_list($a)); unset($a[2]); - assertType('array{1, 2}', $a); + assertType('array{0: 1, 1: 2}', $a); assertType('false', array_is_list($a)); $a[] = 4; assertType('array{0: 1, 1: 2, 3: 4}', $a); diff --git a/tests/PHPStan/Analyser/nsrt/array-replace.php b/tests/PHPStan/Analyser/nsrt/array-replace.php index 6bf0d2b0bac..7b0730481c8 100644 --- a/tests/PHPStan/Analyser/nsrt/array-replace.php +++ b/tests/PHPStan/Analyser/nsrt/array-replace.php @@ -91,7 +91,7 @@ public function arrayReplaceArrayShapeAndGeneralArray($array1, $array2, $array3) */ public function arrayReplaceNumericKeys($array1, $array2): void { - assertType("array{1, 3, 4}", array_replace($array1, $array2)); + assertType("array{0: 1, 1: 3, 2: 4}", array_replace($array1, $array2)); } /** diff --git a/tests/PHPStan/Analyser/nsrt/array-search-offset-argument-count.php b/tests/PHPStan/Analyser/nsrt/array-search-offset-argument-count.php index 639d684d7de..989e889ad60 100644 --- a/tests/PHPStan/Analyser/nsrt/array-search-offset-argument-count.php +++ b/tests/PHPStan/Analyser/nsrt/array-search-offset-argument-count.php @@ -10,7 +10,7 @@ function singleArgument(): void // the haystack is array_search()'s second argument, so a call without one cannot be the // list-preserving idiom - the call itself is reported as invalid $list[array_search($list)] = 4; - assertType('array{1|4, 2|4, 3|4, ...|int<3, max>|string, 4>}', $list); + assertType('array{0: 1|4, 1: 2|4, 2: 3|4, ...|int<3, max>|string, 4>}', $list); } /** @@ -20,5 +20,5 @@ function unpackedArguments(array $args): void { $list = [1, 2, 3]; $list[array_search(...$args)] = 4; - assertType('array{1|4, 2|4, 3|4, ...|int<3, max>|string, 4>}', $list); + assertType('array{0: 1|4, 1: 2|4, 2: 3|4, ...|int<3, max>|string, 4>}', $list); } diff --git a/tests/PHPStan/Analyser/nsrt/array-shape-key-order.php b/tests/PHPStan/Analyser/nsrt/array-shape-key-order.php index 743fc4b07ed..40843d2cdf6 100644 --- a/tests/PHPStan/Analyser/nsrt/array-shape-key-order.php +++ b/tests/PHPStan/Analyser/nsrt/array-shape-key-order.php @@ -139,7 +139,7 @@ function positionsOfIntegerKeysInAnyOrder(bool $b): void assertType("array{'a'|'b', 'a'|'b'}", array_values($x)); assertType("array{'a'|'b'}", array_slice($x, 0, 1)); assertType("array{'a'|'b', 'a'|'b'}", array_reverse($x)); - assertType("array{'b', 'a'}", array_reverse($x, true)); + assertType("array{0: 'b', 1: 'a'}", array_reverse($x, true)); $shifted = $x; array_shift($shifted); diff --git a/tests/PHPStan/Analyser/nsrt/array_map_multiple.php b/tests/PHPStan/Analyser/nsrt/array_map_multiple.php index 2918ebeb898..2599c22b3b7 100644 --- a/tests/PHPStan/Analyser/nsrt/array_map_multiple.php +++ b/tests/PHPStan/Analyser/nsrt/array_map_multiple.php @@ -26,12 +26,12 @@ public function arrayMapNull(array $array, array $other): void { assertType('array{}', array_map(null, [])); assertType('array{foo: true}', array_map(null, ['foo' => true])); - assertType('non-empty-list', array_map(null, [1, 2, 3], [4, 5, 6])); + assertType('non-empty-list', array_map(null, [1, 2, 3], [4, 5, 6])); assertType('non-empty-array', array_map(null, $array)); - assertType('non-empty-list', array_map(null, $array, $array)); - assertType('non-empty-list', array_map(null, $array, $array, $array)); - assertType('non-empty-list', array_map(null, $array, $other)); + assertType('non-empty-list', array_map(null, $array, $array)); + assertType('non-empty-list', array_map(null, $array, $array, $array)); + assertType('non-empty-list', array_map(null, $array, $other)); assertType('array{1}|array{true}', array_map(null, rand() ? [1] : [true])); assertType('array{1}|array{true, false}', array_map(null, rand() ? [1] : [true, false])); diff --git a/tests/PHPStan/Analyser/nsrt/bug-10254.php b/tests/PHPStan/Analyser/nsrt/bug-10254.php index fb55db50163..ba88fa6550c 100644 --- a/tests/PHPStan/Analyser/nsrt/bug-10254.php +++ b/tests/PHPStan/Analyser/nsrt/bug-10254.php @@ -70,7 +70,7 @@ function (): void { $value = Option::some(1) ->zip(Option::some(2)); - assertType('Bug10254\\Option', $value); + assertType('Bug10254\\Option', $value); $value1 = $value->map(function ($value) { assertType('1', $value[0]); diff --git a/tests/PHPStan/Analyser/nsrt/bug-10627.php b/tests/PHPStan/Analyser/nsrt/bug-10627.php index 17579ec52cf..1c2eefe3838 100644 --- a/tests/PHPStan/Analyser/nsrt/bug-10627.php +++ b/tests/PHPStan/Analyser/nsrt/bug-10627.php @@ -11,7 +11,7 @@ public function sayHello(): void { $list = ['A', 'C', 'B']; natcasesort($list); - assertType("array{'A', 'C', 'B'}", $list); + assertType("array{0: 'A', 1: 'C', 2: 'B'}", $list); assertType('bool', array_is_list($list)); } @@ -19,7 +19,7 @@ public function sayHello2(): void { $list = ['A', 'C', 'B']; natsort($list); - assertType("array{'A', 'C', 'B'}", $list); + assertType("array{0: 'A', 1: 'C', 2: 'B'}", $list); assertType('bool', array_is_list($list)); } @@ -27,7 +27,7 @@ public function sayHello3(): void { $list = ['A', 'C', 'B']; arsort($list); - assertType("array{'A', 'C', 'B'}", $list); + assertType("array{0: 'A', 1: 'C', 2: 'B'}", $list); assertType('bool', array_is_list($list)); } @@ -35,7 +35,7 @@ public function sayHello4(): void { $list = ['A', 'C', 'B']; asort($list); - assertType("array{'A', 'C', 'B'}", $list); + assertType("array{0: 'A', 1: 'C', 2: 'B'}", $list); assertType('bool', array_is_list($list)); } @@ -43,7 +43,7 @@ public function sayHello5(): void { $list = ['A', 'C', 'B']; ksort($list); - assertType("array{'A', 'C', 'B'}", $list); + assertType("array{0: 'A', 1: 'C', 2: 'B'}", $list); assertType('bool', array_is_list($list)); } @@ -53,7 +53,7 @@ public function sayHello6(): void uasort($list, function () { }); - assertType("array{'A', 'C', 'B'}", $list); + assertType("array{0: 'A', 1: 'C', 2: 'B'}", $list); assertType('bool', array_is_list($list)); } @@ -63,7 +63,7 @@ public function sayHello7(): void uksort($list, function () { }); - assertType("array{'A', 'C', 'B'}", $list); + assertType("array{0: 'A', 1: 'C', 2: 'B'}", $list); assertType('bool', array_is_list($list)); } @@ -71,7 +71,7 @@ public function sayHello8(): void { $list = ['A', 'C', 'B']; krsort($list); - assertType("array{'A', 'C', 'B'}", $list); + assertType("array{0: 'A', 1: 'C', 2: 'B'}", $list); assertType('bool', array_is_list($list)); } diff --git a/tests/PHPStan/Analyser/nsrt/bug-14314.php b/tests/PHPStan/Analyser/nsrt/bug-14314.php index ea451aa59e8..3d56207502f 100644 --- a/tests/PHPStan/Analyser/nsrt/bug-14314.php +++ b/tests/PHPStan/Analyser/nsrt/bug-14314.php @@ -29,7 +29,7 @@ public function testOptionalKeysWithEmpty(array $arr): void { assertType('array{}|array{0: string, 1: string, 2?: string}', $arr); if (count($arr) === 3) { - assertType('array{string, string, string}', $arr); + assertType('array{0: string, 1: string, 2: string}', $arr); return; } // Fallback keeps full array{0: string, 1: string, 2?: string} since its size diff --git a/tests/PHPStan/Analyser/nsrt/bug-15679.php b/tests/PHPStan/Analyser/nsrt/bug-15679.php index 53b33183275..fc53c9b8007 100644 --- a/tests/PHPStan/Analyser/nsrt/bug-15679.php +++ b/tests/PHPStan/Analyser/nsrt/bug-15679.php @@ -7,7 +7,7 @@ function f(bool $b): void { $x = $b ? [1 => 0, 0 => 0] : [0 => 1, 1 => 0]; - assertType('array{0|1, 0}', $x); + assertType('array{0: 0|1, 1: 0}', $x); assertType('bool', array_is_list($x)); $y = $b ? [1 => 'a', 0 => 'b'] : [0 => 'c', 1 => 'a']; @@ -21,7 +21,7 @@ function g(bool $b): void $y = $b ? [1 => 'a', 0 => 'b'] : [0 => 'c', 1 => 'a']; if (!array_is_list($y)) { - assertType("array{'b'|'c', 'a'}", $y); + assertType("array{0: 'b'|'c', 1: 'a'}", $y); } if ($b) { diff --git a/tests/PHPStan/Analyser/nsrt/bug-3013.php b/tests/PHPStan/Analyser/nsrt/bug-3013.php index 7039b43910b..fa49eae7289 100644 --- a/tests/PHPStan/Analyser/nsrt/bug-3013.php +++ b/tests/PHPStan/Analyser/nsrt/bug-3013.php @@ -48,7 +48,7 @@ public function testArrayKeyExists($foo): void assertType("1", $bar); if (array_key_exists($bar, $foo) === true) { - assertType("array{1, 2}", $foo); + assertType("array{0: 1, 1: 2}", $foo); assertType("1", $bar); return; } diff --git a/tests/PHPStan/Analyser/nsrt/constant-array-type-set.php b/tests/PHPStan/Analyser/nsrt/constant-array-type-set.php index 77331734230..0071c15587b 100644 --- a/tests/PHPStan/Analyser/nsrt/constant-array-type-set.php +++ b/tests/PHPStan/Analyser/nsrt/constant-array-type-set.php @@ -11,7 +11,7 @@ public function doFoo(int $i) { $a = [1, 2, 3]; $a[$i] = 4; - assertType('array{1|4, 2|4, 3|4, ...|int<3, max>, 4>}', $a); + assertType('array{0: 1|4, 1: 2|4, 2: 3|4, ...|int<3, max>, 4>}', $a); $b = [1, 2, 3]; $b[3] = 4; @@ -72,7 +72,7 @@ public function doBar3(int $offset): void { $a = [false, false, false, false, false]; $a[$offset] = true; - assertType('array{bool, bool, bool, bool, bool, ..., true>}', $a); + assertType('array{0: bool, 1: bool, 2: bool, 3: bool, 4: bool, ..., true>}', $a); } /** @@ -83,7 +83,7 @@ public function doBar4(int $offset): void { $a = [false, false, false, false, false]; $a[$offset] = true; - assertType('array{bool, false, false, false, false, ..., true>}', $a); + assertType('array{0: bool, 1: false, 2: false, 3: false, 4: false, ..., true>}', $a); } /** diff --git a/tests/PHPStan/Analyser/nsrt/count-type.php b/tests/PHPStan/Analyser/nsrt/count-type.php index cc0d6437f0c..05ec1da1da7 100644 --- a/tests/PHPStan/Analyser/nsrt/count-type.php +++ b/tests/PHPStan/Analyser/nsrt/count-type.php @@ -73,7 +73,7 @@ public function doBar(array $arr): void } assertType('2', count($arr)); - assertType('array{string, string}', $arr); + assertType('array{0: string, 1: string}', $arr); } /** @param array{0: string, 1?: string} $arr */ @@ -81,7 +81,7 @@ public function doBaz(array $arr): void { if (count($arr) > 1) { assertType('2', count($arr)); - assertType('array{string, string}', $arr); + assertType('array{0: string, 1: string}', $arr); } assertType('1|2', count($arr)); diff --git a/tests/PHPStan/Analyser/nsrt/intersect-array-shape-missing-required-key.php b/tests/PHPStan/Analyser/nsrt/intersect-array-shape-missing-required-key.php index 3b7af798ac0..807073bd7f7 100644 --- a/tests/PHPStan/Analyser/nsrt/intersect-array-shape-missing-required-key.php +++ b/tests/PHPStan/Analyser/nsrt/intersect-array-shape-missing-required-key.php @@ -47,7 +47,7 @@ public function optionalKeyIsDropped(array $a, array $b): void public function keysTheArrayCanHave(array $a, array $b): void { if ($a === $b) { - assertType('array{int, int}', $a); + assertType('array{0: int, 1: int}', $a); } } diff --git a/tests/PHPStan/Analyser/nsrt/list-count.php b/tests/PHPStan/Analyser/nsrt/list-count.php index 12cdf01a280..9058597f9af 100644 --- a/tests/PHPStan/Analyser/nsrt/list-count.php +++ b/tests/PHPStan/Analyser/nsrt/list-count.php @@ -233,11 +233,11 @@ protected function testOptionalKeys($row): void if (count($row) === 1) { assertType('array{mixed}', $row); } else { - assertType('array{mixed, string|null}', $row); + assertType('array{0: mixed, 1: string|null}', $row); } if (count($row) === 2) { - assertType('array{mixed, string|null}', $row); + assertType('array{0: mixed, 1: string|null}', $row); } else { assertType('array{mixed}', $row); } @@ -263,11 +263,11 @@ protected function testOptionalKeysInUnion($row): void if (count($row) === 1) { assertType('array{mixed}', $row); } else { - assertType('array{mixed, string|null}', $row); + assertType('array{0: mixed, 1: string|null}', $row); } if (count($row) === 2) { - assertType('array{mixed, string|null}', $row); + assertType('array{0: mixed, 1: string|null}', $row); } else { assertType('array{mixed}', $row); } @@ -293,11 +293,11 @@ protected function testOptionalKeysInListsOfTaggedUnion($row): void if (count($row) === 1) { assertType('array{int}|array{string}', $row); } else { - assertType('array{int, string|null}', $row); + assertType('array{0: int, 1: string|null}', $row); } if (count($row) === 2) { - assertType('array{int, string|null}', $row); + assertType('array{0: int, 1: string|null}', $row); } else { assertType('array{int}|array{string}', $row); } diff --git a/tests/PHPStan/Analyser/nsrt/localeconv.php b/tests/PHPStan/Analyser/nsrt/localeconv.php index 94f25139fe5..4064dfca945 100644 --- a/tests/PHPStan/Analyser/nsrt/localeconv.php +++ b/tests/PHPStan/Analyser/nsrt/localeconv.php @@ -18,9 +18,9 @@ function (): void { }; function (int $timestamp, bool $assoc): void { - assertType('array{int<0, 59>, int<0, 59>, int<0, 23>, int<1, 31>, int<0, 11>, int, int<0, 6>, int<0, 365>, int}', localtime()); - assertType('array{int<0, 59>, int<0, 59>, int<0, 23>, int<1, 31>, int<0, 11>, int, int<0, 6>, int<0, 365>, int}', localtime($timestamp)); - assertType('array{int<0, 59>, int<0, 59>, int<0, 23>, int<1, 31>, int<0, 11>, int, int<0, 6>, int<0, 365>, int}', localtime($timestamp, false)); + assertType('array{0: int<0, 59>, 1: int<0, 59>, 2: int<0, 23>, 3: int<1, 31>, 4: int<0, 11>, 5: int, 6: int<0, 6>, 7: int<0, 365>, 8: int}', localtime()); + assertType('array{0: int<0, 59>, 1: int<0, 59>, 2: int<0, 23>, 3: int<1, 31>, 4: int<0, 11>, 5: int, 6: int<0, 6>, 7: int<0, 365>, 8: int}', localtime($timestamp)); + assertType('array{0: int<0, 59>, 1: int<0, 59>, 2: int<0, 23>, 3: int<1, 31>, 4: int<0, 11>, 5: int, 6: int<0, 6>, 7: int<0, 365>, 8: int}', localtime($timestamp, false)); assertType('array{tm_sec: int<0, 59>, tm_min: int<0, 59>, tm_hour: int<0, 23>, tm_mday: int<1, 31>, tm_mon: int<0, 11>, tm_year: int, tm_wday: int<0, 6>, tm_yday: int<0, 365>, tm_isdst: int}', localtime($timestamp, true)); - assertType('array{int<0, 59>, int<0, 59>, int<0, 23>, int<1, 31>, int<0, 11>, int, int<0, 6>, int<0, 365>, int}|array{tm_sec: int<0, 59>, tm_min: int<0, 59>, tm_hour: int<0, 23>, tm_mday: int<1, 31>, tm_mon: int<0, 11>, tm_year: int, tm_wday: int<0, 6>, tm_yday: int<0, 365>, tm_isdst: int}', localtime($timestamp, $assoc)); + assertType('array{0: int<0, 59>, 1: int<0, 59>, 2: int<0, 23>, 3: int<1, 31>, 4: int<0, 11>, 5: int, 6: int<0, 6>, 7: int<0, 365>, 8: int}|array{tm_sec: int<0, 59>, tm_min: int<0, 59>, tm_hour: int<0, 23>, tm_mday: int<1, 31>, tm_mon: int<0, 11>, tm_year: int, tm_wday: int<0, 6>, tm_yday: int<0, 365>, tm_isdst: int}', localtime($timestamp, $assoc)); }; diff --git a/tests/PHPStan/Rules/Arrays/ArrayDestructuringRuleTest.php b/tests/PHPStan/Rules/Arrays/ArrayDestructuringRuleTest.php index 521b53d463b..5241daf7f1d 100644 --- a/tests/PHPStan/Rules/Arrays/ArrayDestructuringRuleTest.php +++ b/tests/PHPStan/Rules/Arrays/ArrayDestructuringRuleTest.php @@ -92,7 +92,7 @@ public function testBug8075(): void 36, ], [ - 'Offset 2 does not exist on array{string, int}.', + 'Offset 2 does not exist on array{0: string, 1: int}.', 48, ], [ diff --git a/tests/PHPStan/Rules/Generators/YieldFromTypeRuleTest.php b/tests/PHPStan/Rules/Generators/YieldFromTypeRuleTest.php index 8bf38677d9f..4292f3b74ea 100644 --- a/tests/PHPStan/Rules/Generators/YieldFromTypeRuleTest.php +++ b/tests/PHPStan/Rules/Generators/YieldFromTypeRuleTest.php @@ -49,7 +49,7 @@ public function testRule(): void 41, ], [ - 'Generator expects value type array{DateTime, DateTime, stdClass, DateTimeImmutable}, array{0: DateTime, 1: DateTime, 2: stdClass, 4: DateTimeImmutable} given.', + 'Generator expects value type array{0: DateTime, 1: DateTime, 2: stdClass, 3: DateTimeImmutable}, array{0: DateTime, 1: DateTime, 2: stdClass, 4: DateTimeImmutable} given.', 74, 'Array does not have offset 3.', ], diff --git a/turbo-ext/src/ConstantArrayType.cpp b/turbo-ext/src/ConstantArrayType.cpp index f1d96f6658d..8618b4be5ba 100644 --- a/turbo-ext/src/ConstantArrayType.cpp +++ b/turbo-ext/src/ConstantArrayType.cpp @@ -5386,6 +5386,31 @@ class ConstantArrayType return describeValueLevel(level, arrayName, which == PT_VERBOSITY_VALUE); } + /* private: with bleeding edge, array{X, Y} is a list, so a shape with + * two or more keys that might not be one names its keys; false = + * pending exception */ + [[nodiscard]] bool shouldNameItsKeys(bool &out) const + { + zval *k = keyTypes(); + if (UNEXPECTED(k == NULL)) return false; + if (arrayCount(k) < 2) { + out = false; + return true; + } + zval *l = isListSlot(); + if (UNEXPECTED(l == NULL)) return false; + zend_long isListValue = trinaryOf(l); + if (UNEXPECTED(isListValue < 0)) return false; + if (isListValue == PT_TRI_YES) { + out = false; + return true; + } + bool bleedingEdge; + if (UNEXPECTED(!isBleedingEdge(bleedingEdge))) return false; + out = bleedingEdge; + return true; + } + /* private: a definite list with more than one optional key, with * bleeding edge one with two or more keys, or one optional key that is * not the last key; false = pending exception */ @@ -6807,7 +6832,9 @@ class ConstantArrayType if (UNEXPECTED(v == NULL)) return zv::Val(); zv::Arr items = zv::Arr::create(zend_hash_num_elements(Z_ARRVAL_P(k))); zv::Arr values = zv::Arr::create(zend_hash_num_elements(Z_ARRVAL_P(k))); - bool exportValuesOnly = true; + bool nameKeys; + if (UNEXPECTED(!shouldNameItsKeys(nameKeys))) return zv::Val(); + bool exportValuesOnly = !nameKeys; for (zv::ArrayEntry entry : zv::ArrRef(k)) { zend_long i = (zend_long) entry.indexKey(); zval *keyType = entry.value().deref().raw(); @@ -8258,7 +8285,9 @@ class ConstantArrayType if (UNEXPECTED(v == NULL)) return zv::Val(); zv::Arr items = zv::Arr::create(zend_hash_num_elements(Z_ARRVAL_P(k))); zv::Arr values = zv::Arr::create(zend_hash_num_elements(Z_ARRVAL_P(k))); - bool exportValuesOnly = true; + bool nameKeys; + if (UNEXPECTED(!shouldNameItsKeys(nameKeys))) return zv::Val(); + bool exportValuesOnly = !nameKeys; for (zv::ArrayEntry entry : zv::ArrRef(k)) { zend_long i = (zend_long) entry.indexKey(); zval *keyType = entry.value().deref().raw(); diff --git a/turbo-ext/src/generated/ConstantArrayType.h b/turbo-ext/src/generated/ConstantArrayType.h index 6b3b3e5d2ba..dc7dae55a53 100644 --- a/turbo-ext/src/generated/ConstantArrayType.h +++ b/turbo-ext/src/generated/ConstantArrayType.h @@ -215,62 +215,63 @@ inline constexpr char strings[] = "level\0" /* 2161 */ "PHPStan\\Type\\VerbosityLevel\0" /* 2167 */ "describe\0" /* 2195 */ - "namingKeys\0" /* 2204 */ - "shouldBeDescribedAsAList\0" /* 2215 */ - "receivedType\0" /* 2240 */ - "PHPStan\\Type\\Generic\\TemplateTypeMap\0" /* 2253 */ - "inferTemplateTypes\0" /* 2290 */ - "positionVariance\0" /* 2309 */ - "PHPStan\\Type\\Generic\\TemplateTypeVariance\0" /* 2326 */ - "getReferencedTemplateTypes\0" /* 2368 */ - "typeToRemove\0" /* 2395 */ - "tryRemove\0" /* 2408 */ - "removeOffset\0" /* 2418 */ - "cb\0" /* 2431 */ - "traverse\0" /* 2434 */ - "right\0" /* 2443 */ - "traverseSimultaneously\0" /* 2449 */ - "otherArray\0" /* 2472 */ - "isKeysSupersetOf\0" /* 2483 */ - "legacyIsKeysSupersetOf\0" /* 2500 */ - "mergeWith\0" /* 2523 */ - "a\0" /* 2533 */ - "b\0" /* 2535 */ - "inMergedKeyOrderOf\0" /* 2537 */ - "getKeyTypesInMergedOrderWith\0" /* 2556 */ - "legacyMergeWith\0" /* 2585 */ - "getKeyIndexMap\0" /* 2601 */ - "findVerifiedKeyIndex\0" /* 2616 */ - "isKeyIndexMiss\0" /* 2637 */ - "hasRequiredKeyMissingIn\0" /* 2652 */ - "otherKeyType\0" /* 2676 */ - "getKeyIndex\0" /* 2689 */ - "makeOffsetRequired\0" /* 2701 */ - "makeList\0" /* 2720 */ - "makeListMaybe\0" /* 2729 */ - "mapValueType\0" /* 2743 */ - "mapKeyType\0" /* 2756 */ - "makeAllArrayKeysOptional\0" /* 2767 */ - "case\0" /* 2792 */ - "changeKeyCaseArray\0" /* 2797 */ - "filterArrayRemovingFalsey\0" /* 2816 */ - "PHPStan\\Type\\Constant\\ConstantStringType\0" /* 2842 */ - "foldConstantStringKeyCase\0" /* 2883 */ - "key\0" /* 2909 */ - "foldUnsealedKeyCase\0" /* 2913 */ - "PHPStan\\PhpDocParser\\Ast\\Type\\TypeNode\0" /* 2933 */ - "toPhpDocNode\0" /* 2972 */ - "position\0" /* 2985 */ - "PHPStan\\Type\\NativeTypePosition\0" /* 2994 */ - "toNativePhpTypeNode\0" /* 3026 */ - "value\0" /* 3046 */ - "isValidIdentifier\0" /* 3052 */ - "getFiniteTypes\0" /* 3070 */ - "hasTemplateOrLateResolvableType\0" /* 3085 */ - "hasUnresolvedTemplateArgumentType\0" /* 3117 */ - "otherType\0" /* 3151 */ - "tryUnion\0" /* 3161 */ - "tryIntersect"; /* 3170 */ + "shouldNameItsKeys\0" /* 2204 */ + "namingKeys\0" /* 2222 */ + "shouldBeDescribedAsAList\0" /* 2233 */ + "receivedType\0" /* 2258 */ + "PHPStan\\Type\\Generic\\TemplateTypeMap\0" /* 2271 */ + "inferTemplateTypes\0" /* 2308 */ + "positionVariance\0" /* 2327 */ + "PHPStan\\Type\\Generic\\TemplateTypeVariance\0" /* 2344 */ + "getReferencedTemplateTypes\0" /* 2386 */ + "typeToRemove\0" /* 2413 */ + "tryRemove\0" /* 2426 */ + "removeOffset\0" /* 2436 */ + "cb\0" /* 2449 */ + "traverse\0" /* 2452 */ + "right\0" /* 2461 */ + "traverseSimultaneously\0" /* 2467 */ + "otherArray\0" /* 2490 */ + "isKeysSupersetOf\0" /* 2501 */ + "legacyIsKeysSupersetOf\0" /* 2518 */ + "mergeWith\0" /* 2541 */ + "a\0" /* 2551 */ + "b\0" /* 2553 */ + "inMergedKeyOrderOf\0" /* 2555 */ + "getKeyTypesInMergedOrderWith\0" /* 2574 */ + "legacyMergeWith\0" /* 2603 */ + "getKeyIndexMap\0" /* 2619 */ + "findVerifiedKeyIndex\0" /* 2634 */ + "isKeyIndexMiss\0" /* 2655 */ + "hasRequiredKeyMissingIn\0" /* 2670 */ + "otherKeyType\0" /* 2694 */ + "getKeyIndex\0" /* 2707 */ + "makeOffsetRequired\0" /* 2719 */ + "makeList\0" /* 2738 */ + "makeListMaybe\0" /* 2747 */ + "mapValueType\0" /* 2761 */ + "mapKeyType\0" /* 2774 */ + "makeAllArrayKeysOptional\0" /* 2785 */ + "case\0" /* 2810 */ + "changeKeyCaseArray\0" /* 2815 */ + "filterArrayRemovingFalsey\0" /* 2834 */ + "PHPStan\\Type\\Constant\\ConstantStringType\0" /* 2860 */ + "foldConstantStringKeyCase\0" /* 2901 */ + "key\0" /* 2927 */ + "foldUnsealedKeyCase\0" /* 2931 */ + "PHPStan\\PhpDocParser\\Ast\\Type\\TypeNode\0" /* 2951 */ + "toPhpDocNode\0" /* 2990 */ + "position\0" /* 3003 */ + "PHPStan\\Type\\NativeTypePosition\0" /* 3012 */ + "toNativePhpTypeNode\0" /* 3044 */ + "value\0" /* 3064 */ + "isValidIdentifier\0" /* 3070 */ + "getFiniteTypes\0" /* 3088 */ + "hasTemplateOrLateResolvableType\0" /* 3103 */ + "hasUnresolvedTemplateArgumentType\0" /* 3135 */ + "otherType\0" /* 3169 */ + "tryUnion\0" /* 3179 */ + "tryIntersect"; /* 3188 */ inline constexpr reg::PackedArg args[] = { reg::packed(0, MAY_BE_ARRAY), /* __construct $keyTypes */ reg::packed(9, MAY_BE_ARRAY), /* __construct $valueTypes */ @@ -431,33 +432,34 @@ inline constexpr reg::PackedArg args[] = { reg::packed(129, 0, 164), /* getKeysOrValuesArray return */ reg::packed(2161, 0, 2167), /* describe $level */ reg::packed(129, MAY_BE_STRING), /* describe return */ - reg::packed(2204, MAY_BE_BOOL, reg::NoString, false, false, 112), /* shouldBeDescribedAsAList $namingKeys */ + reg::packed(129, MAY_BE_BOOL), /* shouldNameItsKeys return */ + reg::packed(2222, MAY_BE_BOOL, reg::NoString, false, false, 112), /* shouldBeDescribedAsAList $namingKeys */ reg::packed(129, MAY_BE_BOOL), /* shouldBeDescribedAsAList return */ - reg::packed(2240, 0, 432), /* inferTemplateTypes $receivedType */ - reg::packed(129, 0, 2253), /* inferTemplateTypes return */ - reg::packed(2309, 0, 2326), /* getReferencedTemplateTypes $positionVariance */ + reg::packed(2258, 0, 432), /* inferTemplateTypes $receivedType */ + reg::packed(129, 0, 2271), /* inferTemplateTypes return */ + reg::packed(2327, 0, 2344), /* getReferencedTemplateTypes $positionVariance */ reg::packed(129, MAY_BE_ARRAY), /* getReferencedTemplateTypes return */ - reg::packed(2395, 0, 432), /* tryRemove $typeToRemove */ + reg::packed(2413, 0, 432), /* tryRemove $typeToRemove */ reg::packed(129, MAY_BE_NULL, 432), /* tryRemove return */ reg::packed(1099, 0, 432), /* removeOffset $offsetType */ reg::packed(129, 0, 432), /* removeOffset return */ - reg::packed(2431, MAY_BE_CALLABLE), /* traverse $cb */ + reg::packed(2449, MAY_BE_CALLABLE), /* traverse $cb */ reg::packed(129, 0, 432), /* traverse return */ - reg::packed(2443, 0, 432), /* traverseSimultaneously $right */ - reg::packed(2431, MAY_BE_CALLABLE), /* traverseSimultaneously $cb */ + reg::packed(2461, 0, 432), /* traverseSimultaneously $right */ + reg::packed(2449, MAY_BE_CALLABLE), /* traverseSimultaneously $cb */ reg::packed(129, 0, 432), /* traverseSimultaneously return */ - reg::packed(2472, 0, 164), /* isKeysSupersetOf $otherArray */ + reg::packed(2490, 0, 164), /* isKeysSupersetOf $otherArray */ reg::packed(129, MAY_BE_BOOL), /* isKeysSupersetOf return */ - reg::packed(2472, 0, 164), /* legacyIsKeysSupersetOf $otherArray */ + reg::packed(2490, 0, 164), /* legacyIsKeysSupersetOf $otherArray */ reg::packed(129, MAY_BE_BOOL), /* legacyIsKeysSupersetOf return */ - reg::packed(2472, 0, 164), /* mergeWith $otherArray */ + reg::packed(2490, 0, 164), /* mergeWith $otherArray */ reg::packed(129, 0, 164), /* mergeWith return */ - reg::packed(2533, 0, 164), /* inMergedKeyOrderOf $a */ - reg::packed(2535, 0, 164), /* inMergedKeyOrderOf $b */ + reg::packed(2551, 0, 164), /* inMergedKeyOrderOf $a */ + reg::packed(2553, 0, 164), /* inMergedKeyOrderOf $b */ reg::packed(129, 0, 164), /* inMergedKeyOrderOf return */ reg::packed(232, 0, 164), /* getKeyTypesInMergedOrderWith $other */ reg::packed(129, MAY_BE_NULL | MAY_BE_ARRAY), /* getKeyTypesInMergedOrderWith return */ - reg::packed(2472, 0, 164), /* legacyMergeWith $otherArray */ + reg::packed(2490, 0, 164), /* legacyMergeWith $otherArray */ reg::packed(129, 0, 164), /* legacyMergeWith return */ reg::packed(129, MAY_BE_ARRAY), /* getKeyIndexMap return */ reg::packed(1099, 0, 432), /* findVerifiedKeyIndex $offsetType */ @@ -466,36 +468,36 @@ inline constexpr reg::PackedArg args[] = { reg::packed(129, MAY_BE_BOOL), /* isKeyIndexMiss return */ reg::packed(232, 0, 164), /* hasRequiredKeyMissingIn $other */ reg::packed(129, MAY_BE_BOOL), /* hasRequiredKeyMissingIn return */ - reg::packed(2676, 0), /* getKeyIndex $otherKeyType */ + reg::packed(2694, 0), /* getKeyIndex $otherKeyType */ reg::packed(129, MAY_BE_NULL | MAY_BE_LONG), /* getKeyIndex return */ reg::packed(1099, 0, 432), /* makeOffsetRequired $offsetType */ reg::packed(129, 0, 164), /* makeOffsetRequired return */ reg::packed(129, 0, 432), /* makeList return */ reg::packed(129, 0, 432), /* makeListMaybe return */ - reg::packed(2431, MAY_BE_CALLABLE), /* mapValueType $cb */ + reg::packed(2449, MAY_BE_CALLABLE), /* mapValueType $cb */ reg::packed(129, 0, 432), /* mapValueType return */ - reg::packed(2431, MAY_BE_CALLABLE), /* mapKeyType $cb */ + reg::packed(2449, MAY_BE_CALLABLE), /* mapKeyType $cb */ reg::packed(129, 0, 432), /* mapKeyType return */ reg::packed(129, 0, 432), /* makeAllArrayKeysOptional return */ - reg::packed(2792, MAY_BE_NULL | MAY_BE_LONG), /* changeKeyCaseArray $case */ + reg::packed(2810, MAY_BE_NULL | MAY_BE_LONG), /* changeKeyCaseArray $case */ reg::packed(129, 0, 432), /* changeKeyCaseArray return */ reg::packed(129, 0, 432), /* filterArrayRemovingFalsey return */ - reg::packed(697, 0, 2842), /* foldConstantStringKeyCase $type */ - reg::packed(2792, MAY_BE_NULL | MAY_BE_LONG), /* foldConstantStringKeyCase $case */ + reg::packed(697, 0, 2860), /* foldConstantStringKeyCase $type */ + reg::packed(2810, MAY_BE_NULL | MAY_BE_LONG), /* foldConstantStringKeyCase $case */ reg::packed(129, 0, 432), /* foldConstantStringKeyCase return */ - reg::packed(2909, 0, 432), /* foldUnsealedKeyCase $key */ - reg::packed(2792, MAY_BE_NULL | MAY_BE_LONG), /* foldUnsealedKeyCase $case */ + reg::packed(2927, 0, 432), /* foldUnsealedKeyCase $key */ + reg::packed(2810, MAY_BE_NULL | MAY_BE_LONG), /* foldUnsealedKeyCase $case */ reg::packed(129, 0, 432), /* foldUnsealedKeyCase return */ - reg::packed(129, 0, 2933), /* toPhpDocNode return */ - reg::packed(2985, 0, 2994), /* toNativePhpTypeNode $position */ - reg::packed(3046, MAY_BE_STRING), /* isValidIdentifier $value */ + reg::packed(129, 0, 2951), /* toPhpDocNode return */ + reg::packed(3003, 0, 3012), /* toNativePhpTypeNode $position */ + reg::packed(3064, MAY_BE_STRING), /* isValidIdentifier $value */ reg::packed(129, MAY_BE_BOOL), /* isValidIdentifier return */ reg::packed(129, MAY_BE_ARRAY), /* getFiniteTypes return */ reg::packed(129, MAY_BE_BOOL), /* hasTemplateOrLateResolvableType return */ reg::packed(129, MAY_BE_BOOL), /* hasUnresolvedTemplateArgumentType return */ - reg::packed(3151, 0, 432), /* tryUnion $otherType */ + reg::packed(3169, 0, 432), /* tryUnion $otherType */ reg::packed(129, MAY_BE_NULL, 432), /* tryUnion return */ - reg::packed(3151, 0, 432), /* tryIntersect $otherType */ + reg::packed(3169, 0, 432), /* tryIntersect $otherType */ reg::packed(129, MAY_BE_NULL, 432), /* tryIntersect return */ }; using Sig = reg::Sig; @@ -592,42 +594,43 @@ inline constexpr sigtab::Sig listsIntegerKey = { { 2076 /* listsIntegerKey */, 0 inline constexpr sigtab::Sig withoutPositionsOfKeys = { { 2092 /* withoutPositionsOfKeys */, 0, 153, 0, 153, ZEND_ACC_PRIVATE } }; inline constexpr sigtab::Sig getKeysOrValuesArray = { { 2140 /* getKeysOrValuesArray */, 2, 154, 2, 156, ZEND_ACC_PRIVATE } }; inline constexpr sigtab::Sig describe = { { 2195 /* describe */, 1, 157, 1, 158, ZEND_ACC_PUBLIC } }; -inline constexpr sigtab::Sig shouldBeDescribedAsAList = { { 2215 /* shouldBeDescribedAsAList */, 0, 159, 1, 160, ZEND_ACC_PRIVATE } }; -inline constexpr sigtab::Sig inferTemplateTypes = { { 2290 /* inferTemplateTypes */, 1, 161, 1, 162, ZEND_ACC_PUBLIC } }; -inline constexpr sigtab::Sig getReferencedTemplateTypes = { { 2368 /* getReferencedTemplateTypes */, 1, 163, 1, 164, ZEND_ACC_PUBLIC } }; -inline constexpr sigtab::Sig tryRemove = { { 2408 /* tryRemove */, 1, 165, 1, 166, ZEND_ACC_PUBLIC } }; -inline constexpr sigtab::Sig removeOffset = { { 2418 /* removeOffset */, 1, 167, 1, 168, ZEND_ACC_PRIVATE } }; -inline constexpr sigtab::Sig traverse = { { 2434 /* traverse */, 1, 169, 1, 170, ZEND_ACC_PUBLIC } }; -inline constexpr sigtab::Sig traverseSimultaneously = { { 2449 /* traverseSimultaneously */, 2, 171, 2, 173, ZEND_ACC_PUBLIC } }; -inline constexpr sigtab::Sig isKeysSupersetOf = { { 2483 /* isKeysSupersetOf */, 1, 174, 1, 175, ZEND_ACC_PUBLIC } }; -inline constexpr sigtab::Sig legacyIsKeysSupersetOf = { { 2500 /* legacyIsKeysSupersetOf */, 1, 176, 1, 177, ZEND_ACC_PRIVATE } }; -inline constexpr sigtab::Sig mergeWith = { { 2523 /* mergeWith */, 1, 178, 1, 179, ZEND_ACC_PUBLIC } }; -inline constexpr sigtab::Sig inMergedKeyOrderOf = { { 2537 /* inMergedKeyOrderOf */, 2, 180, 2, 182, ZEND_ACC_PUBLIC } }; -inline constexpr sigtab::Sig getKeyTypesInMergedOrderWith = { { 2556 /* getKeyTypesInMergedOrderWith */, 1, 183, 1, 184, ZEND_ACC_PUBLIC } }; -inline constexpr sigtab::Sig legacyMergeWith = { { 2585 /* legacyMergeWith */, 1, 185, 1, 186, ZEND_ACC_PRIVATE } }; -inline constexpr sigtab::Sig getKeyIndexMap = { { 2601 /* getKeyIndexMap */, 0, 187, 0, 187, ZEND_ACC_PRIVATE } }; -inline constexpr sigtab::Sig findVerifiedKeyIndex = { { 2616 /* findVerifiedKeyIndex */, 1, 188, 1, 189, ZEND_ACC_PRIVATE } }; -inline constexpr sigtab::Sig isKeyIndexMiss = { { 2637 /* isKeyIndexMiss */, 1, 190, 1, 191, ZEND_ACC_PRIVATE } }; -inline constexpr sigtab::Sig hasRequiredKeyMissingIn = { { 2652 /* hasRequiredKeyMissingIn */, 1, 192, 1, 193, ZEND_ACC_PRIVATE } }; -inline constexpr sigtab::Sig getKeyIndex = { { 2689 /* getKeyIndex */, 1, 194, 1, 195, ZEND_ACC_PRIVATE } }; -inline constexpr sigtab::Sig makeOffsetRequired = { { 2701 /* makeOffsetRequired */, 1, 196, 1, 197, ZEND_ACC_PUBLIC } }; -inline constexpr sigtab::Sig makeList = { { 2720 /* makeList */, 0, 198, 0, 198, ZEND_ACC_PUBLIC } }; -inline constexpr sigtab::Sig makeListMaybe = { { 2729 /* makeListMaybe */, 0, 199, 0, 199, ZEND_ACC_PUBLIC } }; -inline constexpr sigtab::Sig mapValueType = { { 2743 /* mapValueType */, 1, 200, 1, 201, ZEND_ACC_PUBLIC } }; -inline constexpr sigtab::Sig mapKeyType = { { 2756 /* mapKeyType */, 1, 202, 1, 203, ZEND_ACC_PUBLIC } }; -inline constexpr sigtab::Sig makeAllArrayKeysOptional = { { 2767 /* makeAllArrayKeysOptional */, 0, 204, 0, 204, ZEND_ACC_PUBLIC } }; -inline constexpr sigtab::Sig changeKeyCaseArray = { { 2797 /* changeKeyCaseArray */, 1, 205, 1, 206, ZEND_ACC_PUBLIC } }; -inline constexpr sigtab::Sig filterArrayRemovingFalsey = { { 2816 /* filterArrayRemovingFalsey */, 0, 207, 0, 207, ZEND_ACC_PUBLIC } }; -inline constexpr sigtab::Sig foldConstantStringKeyCase = { { 2883 /* foldConstantStringKeyCase */, 2, 208, 2, 210, ZEND_ACC_PRIVATE | ZEND_ACC_STATIC } }; -inline constexpr sigtab::Sig foldUnsealedKeyCase = { { 2913 /* foldUnsealedKeyCase */, 2, 211, 2, 213, ZEND_ACC_PRIVATE | ZEND_ACC_STATIC } }; -inline constexpr sigtab::Sig toPhpDocNode = { { 2972 /* toPhpDocNode */, 0, 214, 0, 214, ZEND_ACC_PUBLIC } }; -inline constexpr sigtab::Sig toNativePhpTypeNode = { { 3026 /* toNativePhpTypeNode */, 1, 215, 1, reg::NoArg, ZEND_ACC_PUBLIC } }; -inline constexpr sigtab::Sig isValidIdentifier = { { 3052 /* isValidIdentifier */, 1, 216, 1, 217, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC } }; -inline constexpr sigtab::Sig getFiniteTypes = { { 3070 /* getFiniteTypes */, 0, 218, 0, 218, ZEND_ACC_PUBLIC } }; -inline constexpr sigtab::Sig hasTemplateOrLateResolvableType = { { 3085 /* hasTemplateOrLateResolvableType */, 0, 219, 0, 219, ZEND_ACC_PUBLIC } }; -inline constexpr sigtab::Sig hasUnresolvedTemplateArgumentType = { { 3117 /* hasUnresolvedTemplateArgumentType */, 0, 220, 0, 220, ZEND_ACC_PUBLIC } }; -inline constexpr sigtab::Sig tryUnion = { { 3161 /* tryUnion */, 1, 221, 1, 222, ZEND_ACC_PUBLIC } }; -inline constexpr sigtab::Sig tryIntersect = { { 3170 /* tryIntersect */, 1, 223, 1, 224, ZEND_ACC_PUBLIC } }; +inline constexpr sigtab::Sig shouldNameItsKeys = { { 2204 /* shouldNameItsKeys */, 0, 159, 0, 159, ZEND_ACC_PRIVATE } }; +inline constexpr sigtab::Sig shouldBeDescribedAsAList = { { 2233 /* shouldBeDescribedAsAList */, 0, 160, 1, 161, ZEND_ACC_PRIVATE } }; +inline constexpr sigtab::Sig inferTemplateTypes = { { 2308 /* inferTemplateTypes */, 1, 162, 1, 163, ZEND_ACC_PUBLIC } }; +inline constexpr sigtab::Sig getReferencedTemplateTypes = { { 2386 /* getReferencedTemplateTypes */, 1, 164, 1, 165, ZEND_ACC_PUBLIC } }; +inline constexpr sigtab::Sig tryRemove = { { 2426 /* tryRemove */, 1, 166, 1, 167, ZEND_ACC_PUBLIC } }; +inline constexpr sigtab::Sig removeOffset = { { 2436 /* removeOffset */, 1, 168, 1, 169, ZEND_ACC_PRIVATE } }; +inline constexpr sigtab::Sig traverse = { { 2452 /* traverse */, 1, 170, 1, 171, ZEND_ACC_PUBLIC } }; +inline constexpr sigtab::Sig traverseSimultaneously = { { 2467 /* traverseSimultaneously */, 2, 172, 2, 174, ZEND_ACC_PUBLIC } }; +inline constexpr sigtab::Sig isKeysSupersetOf = { { 2501 /* isKeysSupersetOf */, 1, 175, 1, 176, ZEND_ACC_PUBLIC } }; +inline constexpr sigtab::Sig legacyIsKeysSupersetOf = { { 2518 /* legacyIsKeysSupersetOf */, 1, 177, 1, 178, ZEND_ACC_PRIVATE } }; +inline constexpr sigtab::Sig mergeWith = { { 2541 /* mergeWith */, 1, 179, 1, 180, ZEND_ACC_PUBLIC } }; +inline constexpr sigtab::Sig inMergedKeyOrderOf = { { 2555 /* inMergedKeyOrderOf */, 2, 181, 2, 183, ZEND_ACC_PUBLIC } }; +inline constexpr sigtab::Sig getKeyTypesInMergedOrderWith = { { 2574 /* getKeyTypesInMergedOrderWith */, 1, 184, 1, 185, ZEND_ACC_PUBLIC } }; +inline constexpr sigtab::Sig legacyMergeWith = { { 2603 /* legacyMergeWith */, 1, 186, 1, 187, ZEND_ACC_PRIVATE } }; +inline constexpr sigtab::Sig getKeyIndexMap = { { 2619 /* getKeyIndexMap */, 0, 188, 0, 188, ZEND_ACC_PRIVATE } }; +inline constexpr sigtab::Sig findVerifiedKeyIndex = { { 2634 /* findVerifiedKeyIndex */, 1, 189, 1, 190, ZEND_ACC_PRIVATE } }; +inline constexpr sigtab::Sig isKeyIndexMiss = { { 2655 /* isKeyIndexMiss */, 1, 191, 1, 192, ZEND_ACC_PRIVATE } }; +inline constexpr sigtab::Sig hasRequiredKeyMissingIn = { { 2670 /* hasRequiredKeyMissingIn */, 1, 193, 1, 194, ZEND_ACC_PRIVATE } }; +inline constexpr sigtab::Sig getKeyIndex = { { 2707 /* getKeyIndex */, 1, 195, 1, 196, ZEND_ACC_PRIVATE } }; +inline constexpr sigtab::Sig makeOffsetRequired = { { 2719 /* makeOffsetRequired */, 1, 197, 1, 198, ZEND_ACC_PUBLIC } }; +inline constexpr sigtab::Sig makeList = { { 2738 /* makeList */, 0, 199, 0, 199, ZEND_ACC_PUBLIC } }; +inline constexpr sigtab::Sig makeListMaybe = { { 2747 /* makeListMaybe */, 0, 200, 0, 200, ZEND_ACC_PUBLIC } }; +inline constexpr sigtab::Sig mapValueType = { { 2761 /* mapValueType */, 1, 201, 1, 202, ZEND_ACC_PUBLIC } }; +inline constexpr sigtab::Sig mapKeyType = { { 2774 /* mapKeyType */, 1, 203, 1, 204, ZEND_ACC_PUBLIC } }; +inline constexpr sigtab::Sig makeAllArrayKeysOptional = { { 2785 /* makeAllArrayKeysOptional */, 0, 205, 0, 205, ZEND_ACC_PUBLIC } }; +inline constexpr sigtab::Sig changeKeyCaseArray = { { 2815 /* changeKeyCaseArray */, 1, 206, 1, 207, ZEND_ACC_PUBLIC } }; +inline constexpr sigtab::Sig filterArrayRemovingFalsey = { { 2834 /* filterArrayRemovingFalsey */, 0, 208, 0, 208, ZEND_ACC_PUBLIC } }; +inline constexpr sigtab::Sig foldConstantStringKeyCase = { { 2901 /* foldConstantStringKeyCase */, 2, 209, 2, 211, ZEND_ACC_PRIVATE | ZEND_ACC_STATIC } }; +inline constexpr sigtab::Sig foldUnsealedKeyCase = { { 2931 /* foldUnsealedKeyCase */, 2, 212, 2, 214, ZEND_ACC_PRIVATE | ZEND_ACC_STATIC } }; +inline constexpr sigtab::Sig toPhpDocNode = { { 2990 /* toPhpDocNode */, 0, 215, 0, 215, ZEND_ACC_PUBLIC } }; +inline constexpr sigtab::Sig toNativePhpTypeNode = { { 3044 /* toNativePhpTypeNode */, 1, 216, 1, reg::NoArg, ZEND_ACC_PUBLIC } }; +inline constexpr sigtab::Sig isValidIdentifier = { { 3070 /* isValidIdentifier */, 1, 217, 1, 218, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC } }; +inline constexpr sigtab::Sig getFiniteTypes = { { 3088 /* getFiniteTypes */, 0, 219, 0, 219, ZEND_ACC_PUBLIC } }; +inline constexpr sigtab::Sig hasTemplateOrLateResolvableType = { { 3103 /* hasTemplateOrLateResolvableType */, 0, 220, 0, 220, ZEND_ACC_PUBLIC } }; +inline constexpr sigtab::Sig hasUnresolvedTemplateArgumentType = { { 3135 /* hasUnresolvedTemplateArgumentType */, 0, 221, 0, 221, ZEND_ACC_PUBLIC } }; +inline constexpr sigtab::Sig tryUnion = { { 3179 /* tryUnion */, 1, 222, 1, 223, ZEND_ACC_PUBLIC } }; +inline constexpr sigtab::Sig tryIntersect = { { 3188 /* tryIntersect */, 1, 224, 1, 225, ZEND_ACC_PUBLIC } }; } // namespace sig } // namespace ptdecl::ConstantArrayType