I've got a strange Laravel error today. The message is:
It clearly states that there is an undefined array index. However, when I looked at the rendered blade file mentioned here, and checked line 272 I got this:
<?php if(isset($_COOKIE[$_COOKIE['userhash'] . '-surgery'])): ?>
$_COOKIE['userhash']
is always set. As seen on the above image, it's value is 70c0a3a1
. How is it possible that PHP (or Laravel) throws an error inside an isset statement? How can I solve this issue?