suppress deprecation notice, convert route param (#3391)

This commit is contained in:
Kevin Papst
2022-06-30 12:14:01 +02:00
committed by GitHub
parent 665f0d0ca7
commit cd297150ea
3 changed files with 43 additions and 20 deletions

View File

@@ -137,17 +137,16 @@ trait StringAccessibleConfigTrait
return true;
}
/**
* @return bool
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return $this->has($offset);
}
/**
* @return mixed
* @param $offset
* @return array|bool|float|int|string|null
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return $this->find($offset);