Page 1 of 1
offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool (v2021)
Posted: Fri Nov 17, 2023 11:03 am
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.
Re: offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool (v2021)
Posted: Fri Nov 17, 2023 11:07 am
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.)
Re: offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool (v2021)
Posted: Fri Nov 17, 2023 11:27 am
by pelurusilver
I just realize my wampserver using php8. I just changed the wamp to use php7.35 and it works again. thank you.