opcache problem with Stopwatch
koekaverna opened this issue · 3 comments
koekaverna commented
Because stopwatch is a dev depenendency class doesn't exists in production I have this error:
PHP message: PHP Fatal error: Failed to load class Symfony\Component\Stopwatch\Stopwatch used by typed property Snc\RedisBundle\Logger\RedisCallInterceptor::$stopwatch during preloading in Unknown on line 0
ostrolucky commented
Not sure why is PHP crashing here, since property is optional. Can you craft a reproducer?
koekaverna commented
Probably this one is the same symfony/symfony#44364
There is a problem with opcache and type hinted class properties in 7.4
ostrolucky commented
Yeah. We can't do much in here. You should upgrade your php version.