Skip to content
This repository has been archived by the owner on Sep 23, 2022. It is now read-only.

Commit

Permalink
Change array syntax for 5.3 compat, see issue #24
Browse files Browse the repository at this point in the history
  • Loading branch information
stanlemon committed Jan 6, 2016
1 parent 94b88d3 commit 7a4342a
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -41,7 +41,7 @@ public function process(ContainerBuilder $container)
foreach ($reader->getClassAnnotations($refClass) as $annotation) {
if ($annotation instanceof \Knp\JsonSchemaBundle\Annotations\Schema) {
$alias = $annotation->name ?: strtolower($refClass->getShortName());
$registry->addMethodCall('register', [$alias, $refClass->getName()]);
$registry->addMethodCall('register', array($alias, $refClass->getName()));
}
}
}
Expand All @@ -50,7 +50,7 @@ public function process(ContainerBuilder $container)
foreach ($reader->getClassAnnotations($refClass) as $annotation) {
if ($annotation instanceof \Knp\JsonSchemaBundle\Annotations\Schema) {
$alias = $annotation->name ?: strtolower($refClass->getShortName());
$registry->addMethodCall('register', [$alias, $refClass->getName()]);
$registry->addMethodCall('register', array($alias, $refClass->getName()));
}
}
} else {
Expand Down

0 comments on commit 7a4342a

Please sign in to comment.