File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
modules/openapi-generator/src/main/resources/php Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -476,24 +476,24 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}}{{/parentSchema}}{{^par
476
476
/**
477
477
* Returns true if offset exists. False otherwise.
478
478
*
479
- * @param integer $offset Offset
479
+ * @param integer|string $offset Offset
480
480
*
481
481
* @return boolean
482
482
*/
483
- public function offsetExists($offset): bool
483
+ public function offsetExists(mixed $offset): bool
484
484
{
485
485
return isset($this -> container [$offset ]);
486
486
}
487
487
488
488
/**
489
489
* Gets offset.
490
490
*
491
- * @param integer $offset Offset
491
+ * @param integer|string $offset Offset
492
492
*
493
493
* @return mixed|null
494
494
*/
495
495
#[\ReturnTypeWillChange]
496
- public function offsetGet($offset)
496
+ public function offsetGet(mixed $offset)
497
497
{
498
498
return $this -> container [$offset ] ?? null;
499
499
}
@@ -518,11 +518,11 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}}{{/parentSchema}}{{^par
518
518
/**
519
519
* Unsets offset.
520
520
*
521
- * @param integer $offset Offset
521
+ * @param integer|string $offset Offset
522
522
*
523
523
* @return void
524
524
*/
525
- public function offsetUnset($offset): void
525
+ public function offsetUnset(mixed $offset): void
526
526
{
527
527
unset($this -> container [$offset ]);
528
528
}
You can’t perform that action at this time.
0 commit comments