Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

malaz's avatar
Level 1

php artisan serve have error

php artisan serve retrieve error In CacheManager.php line 81: Illegal offset type in isset or empty

0 likes
1 reply
tykus's avatar

Illegal offset type in isset or empty often means you have used something other than a string or integer to index into an array. Are you trying to retrieve cached values somewhere as Laravel bootstraps, e.g. routes files, ServiceProviders, etc. - check the type of the key you are attempting to retrieve.

Please or to participate in this conversation.