@@ -15,25 +15,27 @@ inline constexpr uint32_t nodeCallbackScope = 1;
1515inline constexpr uint32_t namespace_ = 2 ;
1616inline constexpr uint32_t scopeOutOfFirstLevelStatement = 3 ;
1717inline constexpr uint32_t scopeWithPromotedNativeTypes = 4 ;
18- inline constexpr uint32_t services = 5 ;
19- inline constexpr uint32_t scopeFactory = 6 ;
20- inline constexpr uint32_t context = 7 ;
21- inline constexpr uint32_t declareStrictTypes = 8 ;
22- inline constexpr uint32_t function = 9 ;
23- inline constexpr uint32_t expressionTypes = 10 ;
24- inline constexpr uint32_t nativeExpressionTypes = 11 ;
25- inline constexpr uint32_t conditionalExpressions = 12 ;
26- inline constexpr uint32_t inClosureBindScopeClasses = 13 ;
27- inline constexpr uint32_t anonymousFunctionReflection = 14 ;
28- inline constexpr uint32_t inFirstLevelStatement = 15 ;
29- inline constexpr uint32_t currentlyAssignedExpressions = 16 ;
30- inline constexpr uint32_t currentlyAllowedUndefinedExpressions = 17 ;
31- inline constexpr uint32_t inFunctionCallsStack = 18 ;
32- inline constexpr uint32_t afterExtractCall = 19 ;
33- inline constexpr uint32_t parentScope = 20 ;
34- inline constexpr uint32_t nativeTypesPromoted = 21 ;
35- inline constexpr uint32_t templateArgumentFrame = 22 ;
36- inline constexpr uint32_t templateArgumentConstraints = 23 ;
18+ inline constexpr uint32_t phpVersion = 5 ;
19+ inline constexpr uint32_t phpVersionExpressionTypes = 6 ;
20+ inline constexpr uint32_t services = 7 ;
21+ inline constexpr uint32_t scopeFactory = 8 ;
22+ inline constexpr uint32_t context = 9 ;
23+ inline constexpr uint32_t declareStrictTypes = 10 ;
24+ inline constexpr uint32_t function = 11 ;
25+ inline constexpr uint32_t expressionTypes = 12 ;
26+ inline constexpr uint32_t nativeExpressionTypes = 13 ;
27+ inline constexpr uint32_t conditionalExpressions = 14 ;
28+ inline constexpr uint32_t inClosureBindScopeClasses = 15 ;
29+ inline constexpr uint32_t anonymousFunctionReflection = 16 ;
30+ inline constexpr uint32_t inFirstLevelStatement = 17 ;
31+ inline constexpr uint32_t currentlyAssignedExpressions = 18 ;
32+ inline constexpr uint32_t currentlyAllowedUndefinedExpressions = 19 ;
33+ inline constexpr uint32_t inFunctionCallsStack = 20 ;
34+ inline constexpr uint32_t afterExtractCall = 21 ;
35+ inline constexpr uint32_t parentScope = 22 ;
36+ inline constexpr uint32_t nativeTypesPromoted = 23 ;
37+ inline constexpr uint32_t templateArgumentFrame = 24 ;
38+ inline constexpr uint32_t templateArgumentConstraints = 25 ;
3739} // namespace slot
3840
3941inline void declareClass (reg::Class &cls)
@@ -50,6 +52,8 @@ inline void declareProperties(reg::Class &cls)
5052 cls.property (" namespace" , ZEND_ACC_PRIVATE , reg::PropertyKind::Typed, MAY_BE_NULL | MAY_BE_STRING );
5153 cls.property (" scopeOutOfFirstLevelStatement" , ZEND_ACC_PRIVATE , reg::PropertyKind::TypedNull, MAY_BE_NULL , " PHPStan\\ Analyser\\ MutatingScope" );
5254 cls.property (" scopeWithPromotedNativeTypes" , ZEND_ACC_PRIVATE , reg::PropertyKind::TypedNull, MAY_BE_NULL , " PHPStan\\ Analyser\\ MutatingScope" );
55+ cls.property (" phpVersion" , ZEND_ACC_PRIVATE , reg::PropertyKind::TypedNull, MAY_BE_NULL , " PHPStan\\ Php\\ PhpVersions" );
56+ cls.property (" phpVersionExpressionTypes" , ZEND_ACC_PRIVATE , reg::PropertyKind::TypedEmptyArray, MAY_BE_ARRAY );
5357 cls.property (" services" , ZEND_ACC_PRIVATE , reg::PropertyKind::Typed, 0 , " PHPStan\\ Analyser\\ ScopeServices" );
5458 cls.property (" scopeFactory" , ZEND_ACC_PROTECTED , reg::PropertyKind::Typed, 0 , " PHPStan\\ Analyser\\ InternalScopeFactory" );
5559 cls.property (" context" , ZEND_ACC_PROTECTED , reg::PropertyKind::Typed, 0 , " PHPStan\\ Analyser\\ ScopeContext" );
@@ -482,22 +486,23 @@ inline constexpr char strings[] =
482486 " getIterableValueType\0 " /* 8547 */
483487 " PHPStan\\ Php\\ PhpVersions\0 " /* 8568 */
484488 " getPhpVersion\0 " /* 8592 */
485- " getConfiguredPhpVersionRange\0 " /* 8606 */
486- " isOverallPhpVersionRange\0 " /* 8635 */
487- " PhpParser\\ Node\0 " /* 8660 */
488- " invokeNodeCallback\0 " /* 8675 */
489- " collectorType\0 " /* 8694 */
490- " data\0 " /* 8708 */
491- " emitCollectedData\0 " /* 8713 */
492- " extensionClass\0 " /* 8731 */
493- " trackValueDependency\0 " /* 8746 */
494- " file\0 " /* 8767 */
495- " trackFileDependency\0 " /* 8772 */
496- " directory\0 " /* 8792 */
497- " pattern\0 " /* 8802 */
498- " '*'\0 " /* 8810 */
499- " trackDirectoryDependency\0 " /* 8814 */
500- " trackClassDependency" ; /* 8839 */
489+ " resolvePhpVersion\0 " /* 8606 */
490+ " getConfiguredPhpVersionRange\0 " /* 8624 */
491+ " isOverallPhpVersionRange\0 " /* 8653 */
492+ " PhpParser\\ Node\0 " /* 8678 */
493+ " invokeNodeCallback\0 " /* 8693 */
494+ " collectorType\0 " /* 8712 */
495+ " data\0 " /* 8726 */
496+ " emitCollectedData\0 " /* 8731 */
497+ " extensionClass\0 " /* 8749 */
498+ " trackValueDependency\0 " /* 8764 */
499+ " file\0 " /* 8785 */
500+ " trackFileDependency\0 " /* 8790 */
501+ " directory\0 " /* 8810 */
502+ " pattern\0 " /* 8820 */
503+ " '*'\0 " /* 8828 */
504+ " trackDirectoryDependency\0 " /* 8832 */
505+ " trackClassDependency" ; /* 8857 */
501506inline constexpr reg::PackedArg args[] = {
502507 reg::packed (0 , 0 , 9 ), /* __construct $services */
503508 reg::packed (40 , 0 , 53 ), /* __construct $scopeFactory */
@@ -1016,21 +1021,22 @@ inline constexpr reg::PackedArg args[] = {
10161021 reg::packed (5138 , 0 , 1424 ), /* getIterableValueType $iteratee */
10171022 reg::packed (738 , 0 , 1424 ), /* getIterableValueType return */
10181023 reg::packed (738 , 0 , 8568 ), /* getPhpVersion return */
1024+ reg::packed (738 , 0 , 8568 ), /* resolvePhpVersion return */
10191025 reg::packed (738 , MAY_BE_NULL , 1424 ), /* getConfiguredPhpVersionRange return */
10201026 reg::packed (3874 , 0 , 1424 ), /* isOverallPhpVersionRange $type */
10211027 reg::packed (738 , MAY_BE_BOOL ), /* isOverallPhpVersionRange return */
1022- reg::packed (1707 , 0 , 8660 ), /* invokeNodeCallback $node */
1028+ reg::packed (1707 , 0 , 8678 ), /* invokeNodeCallback $node */
10231029 reg::packed (738 , MAY_BE_VOID ), /* invokeNodeCallback return */
1024- reg::packed (8694 , MAY_BE_STRING ), /* emitCollectedData $collectorType */
1025- reg::packed (8708 , MAY_BE_ANY ), /* emitCollectedData $data */
1030+ reg::packed (8712 , MAY_BE_STRING ), /* emitCollectedData $collectorType */
1031+ reg::packed (8726 , MAY_BE_ANY ), /* emitCollectedData $data */
10261032 reg::packed (738 , MAY_BE_VOID ), /* emitCollectedData return */
1027- reg::packed (8731 , MAY_BE_STRING ), /* trackValueDependency $extensionClass */
1033+ reg::packed (8749 , MAY_BE_STRING ), /* trackValueDependency $extensionClass */
10281034 reg::packed (2540 , MAY_BE_STRING ), /* trackValueDependency $key */
10291035 reg::packed (738 , MAY_BE_VOID ), /* trackValueDependency return */
1030- reg::packed (8767 , MAY_BE_STRING ), /* trackFileDependency $file */
1036+ reg::packed (8785 , MAY_BE_STRING ), /* trackFileDependency $file */
10311037 reg::packed (738 , MAY_BE_VOID ), /* trackFileDependency return */
1032- reg::packed (8792 , MAY_BE_STRING ), /* trackDirectoryDependency $directory */
1033- reg::packed (8802 , MAY_BE_STRING , reg::NoString, false , false , 8810 ), /* trackDirectoryDependency $pattern */
1038+ reg::packed (8810 , MAY_BE_STRING ), /* trackDirectoryDependency $directory */
1039+ reg::packed (8820 , MAY_BE_STRING , reg::NoString, false , false , 8828 ), /* trackDirectoryDependency $pattern */
10341040 reg::packed (738 , MAY_BE_VOID ), /* trackDirectoryDependency return */
10351041 reg::packed (2977 , MAY_BE_STRING ), /* trackClassDependency $className */
10361042 reg::packed (738 , MAY_BE_VOID ), /* trackClassDependency return */
@@ -1233,14 +1239,15 @@ inline constexpr sigtab::Sig getNativeConstantTypes = { { 8505 /* getNativeConst
12331239inline constexpr sigtab::Sig getIterableKeyType = { { 8528 /* getIterableKeyType */ , 1 , 512 , 1 , 513 , ZEND_ACC_PUBLIC } };
12341240inline constexpr sigtab::Sig getIterableValueType = { { 8547 /* getIterableValueType */ , 1 , 514 , 1 , 515 , ZEND_ACC_PUBLIC } };
12351241inline constexpr sigtab::Sig getPhpVersion = { { 8592 /* getPhpVersion */ , 0 , 516 , 0 , 516 , ZEND_ACC_PUBLIC } };
1236- inline constexpr sigtab::Sig getConfiguredPhpVersionRange = { { 8606 /* getConfiguredPhpVersionRange */ , 0 , 517 , 0 , 517 , ZEND_ACC_PRIVATE } };
1237- inline constexpr sigtab::Sig isOverallPhpVersionRange = { { 8635 /* isOverallPhpVersionRange */ , 1 , 518 , 1 , 519 , ZEND_ACC_PRIVATE } };
1238- inline constexpr sigtab::Sig invokeNodeCallback = { { 8675 /* invokeNodeCallback */ , 1 , 520 , 1 , 521 , ZEND_ACC_PUBLIC } };
1239- inline constexpr sigtab::Sig emitCollectedData = { { 8713 /* emitCollectedData */ , 2 , 522 , 2 , 524 , ZEND_ACC_PUBLIC } };
1240- inline constexpr sigtab::Sig trackValueDependency = { { 8746 /* trackValueDependency */ , 2 , 525 , 2 , 527 , ZEND_ACC_PUBLIC } };
1241- inline constexpr sigtab::Sig trackFileDependency = { { 8772 /* trackFileDependency */ , 1 , 528 , 1 , 529 , ZEND_ACC_PUBLIC } };
1242- inline constexpr sigtab::Sig trackDirectoryDependency = { { 8814 /* trackDirectoryDependency */ , 1 , 530 , 2 , 532 , ZEND_ACC_PUBLIC } };
1243- inline constexpr sigtab::Sig trackClassDependency = { { 8839 /* trackClassDependency */ , 1 , 533 , 1 , 534 , ZEND_ACC_PUBLIC } };
1242+ inline constexpr sigtab::Sig resolvePhpVersion = { { 8606 /* resolvePhpVersion */ , 0 , 517 , 0 , 517 , ZEND_ACC_PRIVATE } };
1243+ inline constexpr sigtab::Sig getConfiguredPhpVersionRange = { { 8624 /* getConfiguredPhpVersionRange */ , 0 , 518 , 0 , 518 , ZEND_ACC_PRIVATE } };
1244+ inline constexpr sigtab::Sig isOverallPhpVersionRange = { { 8653 /* isOverallPhpVersionRange */ , 1 , 519 , 1 , 520 , ZEND_ACC_PRIVATE } };
1245+ inline constexpr sigtab::Sig invokeNodeCallback = { { 8693 /* invokeNodeCallback */ , 1 , 521 , 1 , 522 , ZEND_ACC_PUBLIC } };
1246+ inline constexpr sigtab::Sig emitCollectedData = { { 8731 /* emitCollectedData */ , 2 , 523 , 2 , 525 , ZEND_ACC_PUBLIC } };
1247+ inline constexpr sigtab::Sig trackValueDependency = { { 8764 /* trackValueDependency */ , 2 , 526 , 2 , 528 , ZEND_ACC_PUBLIC } };
1248+ inline constexpr sigtab::Sig trackFileDependency = { { 8790 /* trackFileDependency */ , 1 , 529 , 1 , 530 , ZEND_ACC_PUBLIC } };
1249+ inline constexpr sigtab::Sig trackDirectoryDependency = { { 8832 /* trackDirectoryDependency */ , 1 , 531 , 2 , 533 , ZEND_ACC_PUBLIC } };
1250+ inline constexpr sigtab::Sig trackClassDependency = { { 8857 /* trackClassDependency */ , 1 , 534 , 1 , 535 , ZEND_ACC_PUBLIC } };
12441251} // namespace sig
12451252
12461253} // namespace ptdecl::MutatingScope
0 commit comments