Balage Spanyik
banner
balages.bsky.social
Balage Spanyik
@balages.bsky.social
Avid backend developer in the PHP ecosystem, using Laravel primarily for microservices
I asked AI to refactor our Laravel exception handler, because it's a pile of if-instanceofs, butt ugly. Most of them did good (handler methods and a match expression). Claude did this: every handler method starts with the same if-instanceof check and returns null on false. 🤦
March 20, 2025 at 1:10 PM
Interesting: I asked Claude about injecting something into Laravel's default exception handler. It came up with this solution with two parameters for the parent constructor. This is hallucination. The valid parameter is Container, but back in Laravel 5.x times it was Log, hence the confusion. 🤔
January 8, 2025 at 5:04 PM