Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Commit

Permalink
fixed old array syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
fprochazka committed Aug 27, 2016
1 parent f5ce7c2 commit 66e7415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kdyby/Aop/PhpGenerator/AdvisedClassType.php
Expand Up @@ -69,7 +69,7 @@ public static function fromServiceDefinition(Kdyby\Aop\Pointcut\ServiceDefinitio
{
$originalType = $service->getTypeReflection();

$class = $namespace->addClass(str_replace(array('\\', '.'), '_', "{$originalType}Class_{$service->serviceId}"));
$class = $namespace->addClass(str_replace(['\\', '.'], '_', "{$originalType}Class_{$service->serviceId}"));

$class->setExtends('\\' . $originalType->getName());
$class->setFinal(TRUE);
Expand Down

0 comments on commit 66e7415

Please sign in to comment.