Skip to content

Commit 2b55f1b

Browse files
committed
Add ReturnTypeWillChange attribute to Entity
1 parent 4d0110f commit 2b55f1b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

system/Entity/Entity.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
use CodeIgniter\I18n\Time;
2828
use Exception;
2929
use JsonSerializable;
30+
use ReturnTypeWillChange;
3031

3132
/**
3233
* Entity encapsulation, for use with CodeIgniter\Model
@@ -406,8 +407,9 @@ private function castAsJson($value, bool $asArray = false)
406407
/**
407408
* Support for json_encode()
408409
*
409-
* @return array|mixed
410+
* @return array
410411
*/
412+
#[ReturnTypeWillChange]
411413
public function jsonSerialize()
412414
{
413415
return $this->toArray();

0 commit comments

Comments
 (0)