I'm testing the new version of Kdyby/Doctrine for Nette 3.0 and I got this error:
Argument 4 passed to Kdyby\DoctrineCache\Cache::doSaveDependingOnFiles() must be of the type int, null given, called in /vendor/kdyby/doctrine-cache/src/Cache.php on line 75
In previous version it could be null, now it has to an int:
Hi,
I'm testing the new version of Kdyby/Doctrine for Nette 3.0 and I got this error:
Argument 4 passed to Kdyby\DoctrineCache\Cache::doSaveDependingOnFiles() must be of the type int, null given, called in /vendor/kdyby/doctrine-cache/src/Cache.php on line 75
In previous version it could be
null
, now it has to anint
:The
null
value is passed from here:/doctrine/orm/lib/Doctrine/ORM/Query.php:285
Doctrine\Common\Cache\CacheProvider->save()
Changing the function to allow
null
values for$lifeTime
fixes it, but I have no clue what the implications might be:Or even if
null
should be ever passed from other parts of Doctrine code.Also, I think that the
doSave
method will be affected just the same.Relevant composer packages info: