Skip to content

Commit

Permalink
Fully qualify get_class() function name
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Apr 4, 2020
1 parent ab113ca commit 6445aeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/php/lang/ast/emit/RewriteClassOnObjects.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ trait RewriteClassOnObjects {

protected function emitScope($result, $scope) {
if ($scope->member instanceof Literal && 'class' === $scope->member->expression && !is_string($scope->type)) {
$result->out->write('get_class(');
$result->out->write('\\get_class(');
$this->emitOne($result, $scope->type);
$result->out->write(')');
} else {
Expand Down

0 comments on commit 6445aeb

Please sign in to comment.