diff --git a/src/Php/Preprocessor.php b/src/Php/Preprocessor.php index 2b865e0a..e21fa3fa 100644 --- a/src/Php/Preprocessor.php +++ b/src/Php/Preprocessor.php @@ -623,7 +623,7 @@ class Preprocessor extends CompilerBase */ $aliases[$this->getFullMethodName($trait1, $methodName)] = [ 'newName' => $adaptation->newName->toString(), - 'newModifier' => $adaptation->newModifier ?: $adaptation->newModifier->toString(), + 'newModifier' => $adaptation->newModifier ?: 0, ]; } if ($adaptation instanceof Node\Stmt\TraitUseAdaptation\Precedence) {