Skip to content

Commit

Permalink
correct context of the closure in configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
webnet-fr committed Dec 9, 2018
1 parent 179fd8d commit 23367df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DependencyInjection/Configuration.php
Expand Up @@ -339,7 +339,7 @@ private function addOrmSection(ArrayNodeDefinition $node)
->scalarNode('auto_generate_proxy_classes')->defaultValue(false)
->info('Auto generate mode possible values are: "NEVER", "ALWAYS", "FILE_NOT_EXISTS", "EVAL"')
->validate()
->ifTrue(static function ($v) {
->ifTrue(function ($v) {
$generationModes = $this->getAutoGenerateModes();

if (is_int($v) && in_array($v, $generationModes['values']/*array(0, 1, 2, 3)*/)) {
Expand Down

0 comments on commit 23367df

Please sign in to comment.