Looks like you are the first. Maybe you should create an issue on GitHub for that repository/package. Freek probably knows it best and how to fix it. Until then go back to 7.3.
Typed property must be unknown or null Error (Project powered by Vapor)
Hello guys.
I have a pretty simple Laravel api project hosted on AWS Lambda (Vapor). it works fine on php 7.3 but as soon as i switched to php 7.4 (+ update some vendor libs like Response Cache) i started to get a very strange error
Typed property Spatie\ResponseCache\ResponseCacheRepository::$cache must be unknown or null, Illuminate\Cache\Repository used
"file": "/var/task/vendor/spatie/laravel-responsecache/src/ResponseCacheRepository.php:17",
code below:
https://github.com/spatie/laravel-responsecache/blob/6.4.0/src/ResponseCacheRepository.php
Bug behaviour is a very strange. As soon as i deployed code it works fine for 5 - 10 mins, next i start to get small amount of bug reports (see error details above), and amount of reports growing exponentially.
it works fine on staging AWS Lambda.
My production server has approximatelly loading about 10 req / s
Can't find any description for like errors :(
Did you see similar errors in your projects ?
Thanks
Please or to participate in this conversation.