snc/SncRedisBundle

opcache problem with Stopwatch

koekaverna opened this issue · 3 comments

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

Not sure why is PHP crashing here, since property is optional. Can you craft a reproducer?

Probably this one is the same symfony/symfony#44364

There is a problem with opcache and type hinted class properties in 7.4

Yeah. We can't do much in here. You should upgrade your php version.