Return value of ProxyManager\Configuration::setGeneratorStrategy() must be an instance of ProxyManager\void, none returned

我只是一个虾纸丫 提交于 2020-01-15 09:40:48

问题


I am using Symfony framework 3.4 at the moment. My vagrant box is running PHP 7.2.2. I everything was working properly before i installed 3 bundles below:

  1. almasaeed2010/adminlte
  2. doctrine/data-fixtures
  3. doctrine/doctrine-migrations-bundle

I am getting below error when i am trying to access any page:

(1/1) FatalThrowableError
Type error: Return value of ProxyManager\Configuration::setGeneratorStrategy() must be an instance of ProxyManager\void, none returned

in Configuration.php (line 108)
at Configuration->setGeneratorStrategy(object(EvaluatingGeneratorStrategy))
in RuntimeInstantiator.php (line 37)
at RuntimeInstantiator->__construct()
in Kernel.php (line 828)
at Kernel->getContainerBuilder()
in Kernel.php (line 770)
at Kernel->buildContainer()
in Kernel.php (line 642)
at Kernel->initializeContainer()
in Kernel.php (line 137)
at Kernel->boot()
in Kernel.php (line 197)
at Kernel->handle(object(Request))
in app_dev.php (line 29)

I did some google about this error and i found that people with older PHP version or older version of ocramius/proxy-manager was having the problem. But none helped me to solve this issue and now i am stuck.

Hope i will find some solution for this problem. Thank you in advance.


回答1:


You're not running PHP 7.2, not even 7.1, because the void type is not recognized. Check again your Vagrant configuration.



来源:https://stackoverflow.com/questions/50243312/return-value-of-proxymanager-configurationsetgeneratorstrategy-must-be-an-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!