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

jhandayan's avatar

array_key_exists() on objects is deprecated. on php 7.4

This function is deprecated on php 7.4. Recent laravel most of dependencies uses that function. My project got an error .

array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead

Need any idea guys.

0 likes
2 replies
Sinnbeck's avatar

What line is throwing the error? Be aware that it is ONLY deprecated when working with objects

jhandayan's avatar

This is the error:

array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead

When i do search on the path. I see most of the dependencies has it

Please or to participate in this conversation.