问题
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:
- almasaeed2010/adminlte
- doctrine/data-fixtures
- 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