Urgent Help Needed Please

When payment is checked out this error shows on the invoice.

I am using version 4.11.5

The payment was successful but then that error shows.

Someone please help me on how to fix the error. Thank you

PHP Deprecated


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

Error at

app/lib/vendor/twig/twig/lib/Twig/Template.php, line: 533