Skip to content

Commit aded561

Browse files
authored
Suppress deprecation warning
WARNING: Return type of Bavix\LaravelClickHouse\Database\Eloquent\Model::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
1 parent 69eb013 commit aded561

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Database/Eloquent/Model.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,7 @@ public function offsetExists($offset): bool
641641
*
642642
* @return mixed
643643
*/
644+
#[\ReturnTypeWillChange]
644645
public function offsetGet($offset)
645646
{
646647
return $this->getAttribute($offset);

0 commit comments

Comments
 (0)