This bug is fixed in 5.5.25: https://bugs.php.net/bug.php?id=60022
Look at use statement in class where Cookie is used, something is wrong with namespaces.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
After upgrading to PHP 5.5.25, our Laravel site crashed on May 14 2015.
Here is the error message : The use statement with non-compound name 'Cookie' has no effect
Once we rolled back to PHP 5.5.24, the error message disappeared and the site became functional again.
We are using Laravel version 4.2.9 We'd like to know what changes we should make to our code so it is compatible with PHP 5.5.25
Thanks
Please or to participate in this conversation.