offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool (v2021)

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
pelurusilver
User
Posts: 45

offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool (v2021)

Post by pelurusilver »

today all my phpmaker2021 creation got this error

Deprecated: Return type of PHPMaker2021\project1\Attributes::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in F:\wamp64\www\test\src\Attributes.php on line 29

i need to stick to v2021 as I already familiar with the code and its functionality already feeds my developement

can someone advise.


arbei
User
Posts: 9619

Post by arbei »

Old versions did not support PHP 8, you should use older versions of PHP in such case. (You better upgrade to PHPMaker 2024.)


pelurusilver
User
Posts: 45

Post by pelurusilver »

I just realize my wampserver using php8. I just changed the wamp to use php7.35 and it works again. thank you.


Post Reply