Skip to content

Commit df3e155

Browse files
authored
[php-nextgen]: Fix offsetGet parameter (#23315)
Co-authored-by: coffeemakr <coffeemakr@users.noreply.github.com>
1 parent 7717eb8 commit df3e155

71 files changed

Lines changed: 284 additions & 284 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

modules/openapi-generator/src/main/resources/php-nextgen/model_generic.mustache

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}}{{/parentSchema}}{{^par
463463
/**
464464
* Returns true if offset exists. False otherwise.
465465
*
466-
* @param integer $offset Offset
466+
* @param int|string $offset Offset
467467
*
468468
* @return boolean
469469
*/
@@ -475,7 +475,7 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}}{{/parentSchema}}{{^par
475475
/**
476476
* Gets offset.
477477
*
478-
* @param integer $offset Offset
478+
* @param int|string $offset Offset
479479
*
480480
* @return mixed|null
481481
*/
@@ -488,7 +488,7 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}}{{/parentSchema}}{{^par
488488
/**
489489
* Sets value based on offset.
490490
*
491-
* @param int|null $offset Offset
491+
* @param int|string|null $offset Offset
492492
* @param mixed $value Value to be set
493493
*
494494
* @return void
@@ -505,7 +505,7 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}}{{/parentSchema}}{{^par
505505
/**
506506
* Unsets offset.
507507
*
508-
* @param integer $offset Offset
508+
* @param int|string $offset Offset
509509
*
510510
* @return void
511511
*/

samples/client/echo_api/php-nextgen-streaming/src/Model/Bird.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ public function setColor(?string $color): static
327327
/**
328328
* Returns true if offset exists. False otherwise.
329329
*
330-
* @param integer $offset Offset
330+
* @param int|string $offset Offset
331331
*
332332
* @return boolean
333333
*/
@@ -339,7 +339,7 @@ public function offsetExists(mixed $offset): bool
339339
/**
340340
* Gets offset.
341341
*
342-
* @param integer $offset Offset
342+
* @param int|string $offset Offset
343343
*
344344
* @return mixed|null
345345
*/
@@ -352,7 +352,7 @@ public function offsetGet(mixed $offset): mixed
352352
/**
353353
* Sets value based on offset.
354354
*
355-
* @param int|null $offset Offset
355+
* @param int|string|null $offset Offset
356356
* @param mixed $value Value to be set
357357
*
358358
* @return void
@@ -369,7 +369,7 @@ public function offsetSet(mixed $offset, mixed $value): void
369369
/**
370370
* Unsets offset.
371371
*
372-
* @param integer $offset Offset
372+
* @param int|string $offset Offset
373373
*
374374
* @return void
375375
*/

samples/client/echo_api/php-nextgen-streaming/src/Model/Category.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ public function setName(?string $name): static
327327
/**
328328
* Returns true if offset exists. False otherwise.
329329
*
330-
* @param integer $offset Offset
330+
* @param int|string $offset Offset
331331
*
332332
* @return boolean
333333
*/
@@ -339,7 +339,7 @@ public function offsetExists(mixed $offset): bool
339339
/**
340340
* Gets offset.
341341
*
342-
* @param integer $offset Offset
342+
* @param int|string $offset Offset
343343
*
344344
* @return mixed|null
345345
*/
@@ -352,7 +352,7 @@ public function offsetGet(mixed $offset): mixed
352352
/**
353353
* Sets value based on offset.
354354
*
355-
* @param int|null $offset Offset
355+
* @param int|string|null $offset Offset
356356
* @param mixed $value Value to be set
357357
*
358358
* @return void
@@ -369,7 +369,7 @@ public function offsetSet(mixed $offset, mixed $value): void
369369
/**
370370
* Unsets offset.
371371
*
372-
* @param integer $offset Offset
372+
* @param int|string $offset Offset
373373
*
374374
* @return void
375375
*/

samples/client/echo_api/php-nextgen-streaming/src/Model/DataQuery.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ public function setDate(?\DateTime $date): static
355355
/**
356356
* Returns true if offset exists. False otherwise.
357357
*
358-
* @param integer $offset Offset
358+
* @param int|string $offset Offset
359359
*
360360
* @return boolean
361361
*/
@@ -367,7 +367,7 @@ public function offsetExists(mixed $offset): bool
367367
/**
368368
* Gets offset.
369369
*
370-
* @param integer $offset Offset
370+
* @param int|string $offset Offset
371371
*
372372
* @return mixed|null
373373
*/
@@ -380,7 +380,7 @@ public function offsetGet(mixed $offset): mixed
380380
/**
381381
* Sets value based on offset.
382382
*
383-
* @param int|null $offset Offset
383+
* @param int|string|null $offset Offset
384384
* @param mixed $value Value to be set
385385
*
386386
* @return void
@@ -397,7 +397,7 @@ public function offsetSet(mixed $offset, mixed $value): void
397397
/**
398398
* Unsets offset.
399399
*
400-
* @param integer $offset Offset
400+
* @param int|string $offset Offset
401401
*
402402
* @return void
403403
*/

samples/client/echo_api/php-nextgen-streaming/src/Model/DefaultValue.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ public function setStringNullable(?string $string_nullable): static
579579
/**
580580
* Returns true if offset exists. False otherwise.
581581
*
582-
* @param integer $offset Offset
582+
* @param int|string $offset Offset
583583
*
584584
* @return boolean
585585
*/
@@ -591,7 +591,7 @@ public function offsetExists(mixed $offset): bool
591591
/**
592592
* Gets offset.
593593
*
594-
* @param integer $offset Offset
594+
* @param int|string $offset Offset
595595
*
596596
* @return mixed|null
597597
*/
@@ -604,7 +604,7 @@ public function offsetGet(mixed $offset): mixed
604604
/**
605605
* Sets value based on offset.
606606
*
607-
* @param int|null $offset Offset
607+
* @param int|string|null $offset Offset
608608
* @param mixed $value Value to be set
609609
*
610610
* @return void
@@ -621,7 +621,7 @@ public function offsetSet(mixed $offset, mixed $value): void
621621
/**
622622
* Unsets offset.
623623
*
624-
* @param integer $offset Offset
624+
* @param int|string $offset Offset
625625
*
626626
* @return void
627627
*/

samples/client/echo_api/php-nextgen-streaming/src/Model/NumberPropertiesOnly.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ public function setDouble(?float $double): static
377377
/**
378378
* Returns true if offset exists. False otherwise.
379379
*
380-
* @param integer $offset Offset
380+
* @param int|string $offset Offset
381381
*
382382
* @return boolean
383383
*/
@@ -389,7 +389,7 @@ public function offsetExists(mixed $offset): bool
389389
/**
390390
* Gets offset.
391391
*
392-
* @param integer $offset Offset
392+
* @param int|string $offset Offset
393393
*
394394
* @return mixed|null
395395
*/
@@ -402,7 +402,7 @@ public function offsetGet(mixed $offset): mixed
402402
/**
403403
* Sets value based on offset.
404404
*
405-
* @param int|null $offset Offset
405+
* @param int|string|null $offset Offset
406406
* @param mixed $value Value to be set
407407
*
408408
* @return void
@@ -419,7 +419,7 @@ public function offsetSet(mixed $offset, mixed $value): void
419419
/**
420420
* Unsets offset.
421421
*
422-
* @param integer $offset Offset
422+
* @param int|string $offset Offset
423423
*
424424
* @return void
425425
*/

samples/client/echo_api/php-nextgen-streaming/src/Model/Pet.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ public function setStatus(?string $status): static
505505
/**
506506
* Returns true if offset exists. False otherwise.
507507
*
508-
* @param integer $offset Offset
508+
* @param int|string $offset Offset
509509
*
510510
* @return boolean
511511
*/
@@ -517,7 +517,7 @@ public function offsetExists(mixed $offset): bool
517517
/**
518518
* Gets offset.
519519
*
520-
* @param integer $offset Offset
520+
* @param int|string $offset Offset
521521
*
522522
* @return mixed|null
523523
*/
@@ -530,7 +530,7 @@ public function offsetGet(mixed $offset): mixed
530530
/**
531531
* Sets value based on offset.
532532
*
533-
* @param int|null $offset Offset
533+
* @param int|string|null $offset Offset
534534
* @param mixed $value Value to be set
535535
*
536536
* @return void
@@ -547,7 +547,7 @@ public function offsetSet(mixed $offset, mixed $value): void
547547
/**
548548
* Unsets offset.
549549
*
550-
* @param integer $offset Offset
550+
* @param int|string $offset Offset
551551
*
552552
* @return void
553553
*/

samples/client/echo_api/php-nextgen-streaming/src/Model/Query.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ public function setOutcomes(?array $outcomes): static
353353
/**
354354
* Returns true if offset exists. False otherwise.
355355
*
356-
* @param integer $offset Offset
356+
* @param int|string $offset Offset
357357
*
358358
* @return boolean
359359
*/
@@ -365,7 +365,7 @@ public function offsetExists(mixed $offset): bool
365365
/**
366366
* Gets offset.
367367
*
368-
* @param integer $offset Offset
368+
* @param int|string $offset Offset
369369
*
370370
* @return mixed|null
371371
*/
@@ -378,7 +378,7 @@ public function offsetGet(mixed $offset): mixed
378378
/**
379379
* Sets value based on offset.
380380
*
381-
* @param int|null $offset Offset
381+
* @param int|string|null $offset Offset
382382
* @param mixed $value Value to be set
383383
*
384384
* @return void
@@ -395,7 +395,7 @@ public function offsetSet(mixed $offset, mixed $value): void
395395
/**
396396
* Unsets offset.
397397
*
398-
* @param integer $offset Offset
398+
* @param int|string $offset Offset
399399
*
400400
* @return void
401401
*/

samples/client/echo_api/php-nextgen-streaming/src/Model/Tag.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ public function setName(?string $name): static
327327
/**
328328
* Returns true if offset exists. False otherwise.
329329
*
330-
* @param integer $offset Offset
330+
* @param int|string $offset Offset
331331
*
332332
* @return boolean
333333
*/
@@ -339,7 +339,7 @@ public function offsetExists(mixed $offset): bool
339339
/**
340340
* Gets offset.
341341
*
342-
* @param integer $offset Offset
342+
* @param int|string $offset Offset
343343
*
344344
* @return mixed|null
345345
*/
@@ -352,7 +352,7 @@ public function offsetGet(mixed $offset): mixed
352352
/**
353353
* Sets value based on offset.
354354
*
355-
* @param int|null $offset Offset
355+
* @param int|string|null $offset Offset
356356
* @param mixed $value Value to be set
357357
*
358358
* @return void
@@ -369,7 +369,7 @@ public function offsetSet(mixed $offset, mixed $value): void
369369
/**
370370
* Unsets offset.
371371
*
372-
* @param integer $offset Offset
372+
* @param int|string $offset Offset
373373
*
374374
* @return void
375375
*/

samples/client/echo_api/php-nextgen-streaming/src/Model/TestFormObjectMultipartRequestMarker.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ public function setName(?string $name): static
293293
/**
294294
* Returns true if offset exists. False otherwise.
295295
*
296-
* @param integer $offset Offset
296+
* @param int|string $offset Offset
297297
*
298298
* @return boolean
299299
*/
@@ -305,7 +305,7 @@ public function offsetExists(mixed $offset): bool
305305
/**
306306
* Gets offset.
307307
*
308-
* @param integer $offset Offset
308+
* @param int|string $offset Offset
309309
*
310310
* @return mixed|null
311311
*/
@@ -318,7 +318,7 @@ public function offsetGet(mixed $offset): mixed
318318
/**
319319
* Sets value based on offset.
320320
*
321-
* @param int|null $offset Offset
321+
* @param int|string|null $offset Offset
322322
* @param mixed $value Value to be set
323323
*
324324
* @return void
@@ -335,7 +335,7 @@ public function offsetSet(mixed $offset, mixed $value): void
335335
/**
336336
* Unsets offset.
337337
*
338-
* @param integer $offset Offset
338+
* @param int|string $offset Offset
339339
*
340340
* @return void
341341
*/

0 commit comments

Comments
 (0)