You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Return type of Collective\Annotations\Routing\Meta::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /vendor/laravelcollective/annotations/src/Routing/Meta.php on line 75
Just a warning but would be nice if this was updated soon
The text was updated successfully, but these errors were encountered:
It appears that adding return types to these 3 methods makes the warnings go away:
/**
* Get the value at a given offset.
*
* @param string $offset
*
* @return mixed
*/
public function offsetGet($offset): mixed
{
return $this->values[$offset];
}
/**
* Set the value at a given offset.
*
* @param string $offset
* @param mixed $value
*
* @return void
*/
public function offsetSet($offset, $value): void
{
$this->values[$offset] = $value;
}
/**
* Remove the value at a given offset.
*
* @param string $offset
*
* @return void
*/
public function offsetUnset($offset): void
{
unset($this->values[$offset]);
}
Starting getting these warnings running PHP 8.1
Just a warning but would be nice if this was updated soon
The text was updated successfully, but these errors were encountered: