Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -476,24 +476,24 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}}{{/parentSchema}}{{^par
/**
* Returns true if offset exists. False otherwise.
*
* @param integer $offset Offset
* @param integer|string $offset Offset
*
* @return boolean
*/
public function offsetExists($offset): bool
public function offsetExists(mixed $offset): bool
{
return isset($this->container[$offset]);
}

/**
* Gets offset.
*
* @param integer $offset Offset
* @param integer|string $offset Offset
*
* @return mixed|null
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
public function offsetGet(mixed $offset)
{
return $this->container[$offset] ?? null;
}
Expand All @@ -518,11 +518,11 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}}{{/parentSchema}}{{^par
/**
* Unsets offset.
*
* @param integer $offset Offset
* @param integer|string $offset Offset
*
* @return void
*/
public function offsetUnset($offset): void
public function offsetUnset(mixed $offset): void
{
unset($this->container[$offset]);
}
Expand Down
Loading