wrk-flow / larastrict

Opinionated extension of a Laravel framework to help you build type safe, testable and reusable code.
https://larastrict.com
MIT License
5 stars 2 forks source link

Context service cache - ignore value when class is corrupted #97

Open pionl opened 1 month ago

pionl commented 1 month ago

            if ($value instanceof \__PHP_Incomplete_Class) {
                $this->logger->warning('Cache value is corrupted (incomplete class)', [
                    'key' => $key,
                ]);
                $value = null;
                continue;
            }