@@ -2662,7 +2662,7 @@ function (Name $item) {
2662
2662
foreach ($ this ->attributes as $ key => $ attribute ) {
2663
2663
$ code .= $ attribute ->generateCode (
2664
2664
"zend_add_class_attribute(class_entry " ,
2665
- "class_ {$ escapedName }_ " . ( $ key + 1 ) ,
2665
+ "class_ {$ escapedName }_ $ key" ,
2666
2666
$ allConstInfos ,
2667
2667
$ this ->phpVersionIdMinimumCompatibility
2668
2668
);
@@ -4307,7 +4307,7 @@ static function (FuncInfo $funcInfo) use ($allConstInfos, $phpVersionIdMinimumCo
4307
4307
foreach ($ funcInfo ->attributes as $ key => $ attribute ) {
4308
4308
$ code .= $ attribute ->generateCode (
4309
4309
"zend_add_function_attribute(zend_hash_str_find_ptr( $ functionTable, \"" . $ funcInfo ->name ->getNameForAttributes () . "\", sizeof( \"" . $ funcInfo ->name ->getNameForAttributes () . "\") - 1) " ,
4310
- "func_ " . $ funcInfo ->name ->getNameForAttributes () . "_ " . ( $ key + 1 ) ,
4310
+ "func_ " . $ funcInfo ->name ->getNameForAttributes () . "_ $ key" ,
4311
4311
$ allConstInfos ,
4312
4312
$ phpVersionIdMinimumCompatibility
4313
4313
);
@@ -4317,7 +4317,7 @@ static function (FuncInfo $funcInfo) use ($allConstInfos, $phpVersionIdMinimumCo
4317
4317
foreach ($ arg ->attributes as $ key => $ attribute ) {
4318
4318
$ code .= $ attribute ->generateCode (
4319
4319
"zend_add_parameter_attribute(zend_hash_str_find_ptr( $ functionTable, \"" . $ funcInfo ->name ->getNameForAttributes () . "\", sizeof( \"" . $ funcInfo ->name ->getNameForAttributes () . "\") - 1), $ index " ,
4320
- "func_ {$ funcInfo ->name ->getNameForAttributes ()}_arg {$ index }_ " . ( $ key + 1 ) ,
4320
+ "func_ {$ funcInfo ->name ->getNameForAttributes ()}_arg {$ index }_ $ key" ,
4321
4321
$ allConstInfos ,
4322
4322
$ phpVersionIdMinimumCompatibility
4323
4323
);
@@ -4348,7 +4348,7 @@ static function (ConstInfo $constInfo) use ($allConstInfos, $phpVersionIdMinimum
4348
4348
foreach ($ constInfo ->attributes as $ key => $ attribute ) {
4349
4349
$ code .= $ attribute ->generateCode (
4350
4350
"zend_add_class_constant_attribute(class_entry, const_ " . $ constInfo ->name ->getDeclarationName (),
4351
- "const_ " . $ constInfo ->name ->getDeclarationName () . "_ " . ( $ key + 1 ) ,
4351
+ "const_ " . $ constInfo ->name ->getDeclarationName () . "_ $ key" ,
4352
4352
$ allConstInfos ,
4353
4353
$ phpVersionIdMinimumCompatibility
4354
4354
);
@@ -4373,7 +4373,7 @@ function generatePropertyAttributeInitialization(
4373
4373
foreach ($ propertyInfo ->attributes as $ key => $ attribute ) {
4374
4374
$ code .= $ attribute ->generateCode (
4375
4375
"zend_add_property_attribute(class_entry, property_ " . $ propertyInfo ->name ->getDeclarationName (),
4376
- "property_ " . $ propertyInfo ->name ->getDeclarationName () . "_ " . ( $ key + 1 ) ,
4376
+ "property_ " . $ propertyInfo ->name ->getDeclarationName () . "_ " . $ key ,
4377
4377
$ allConstInfos ,
4378
4378
$ phpVersionIdMinimumCompatibility
4379
4379
);
0 commit comments