mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
5202c86107
The json_decode() with JSON_THROW_ON_ERROR throws an exception before the ?: operator can provide a fallback value. This caused page crashes when invalid JSON was passed to the Blade component attributes. Now using a helper method with try-catch to safely decode JSON and return an empty array on failure, preventing page crashes.