Skip to content

Commit

Permalink
Fix quotes in exception messages
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Mar 16, 2020
1 parent ae85061 commit 8807231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LazyProxy/PhpDumper/LazyLoadingValueHolderGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function generate(\ReflectionClass $originalClass, ClassGenerator $classG
$newBody = preg_replace('/^(\$this->initializer[a-zA-Z0-9]++) && .*;\n\nreturn (\$this->valueHolder)/', '$1 || $2', $body);

if ($body === $newBody) {
throw new \UnexpectedValueException(sprintf('Unexpected lazy-proxy format generated for method %s::__destruct().', $originalClass->name));
throw new \UnexpectedValueException(sprintf('Unexpected lazy-proxy format generated for method "%s::__destruct()".', $originalClass->name));
}

$destructor->setBody($newBody);
Expand Down

0 comments on commit 8807231

Please sign in to comment.