Skip to content

Commit

Permalink
change TraitUse to TraitUseAdaptation
Browse files Browse the repository at this point in the history
  • Loading branch information
LioTree committed May 2, 2022
1 parent b91854f commit c5d7583
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Expand Up @@ -9,7 +9,7 @@
* @license MIT See LICENSE at the root of the project for more info
*/

namespace PHPCfg\Op\TraitUse;
namespace PHPCfg\Op\TraitUseAdaptation;

use PhpParser\Node;
use PHPCfg\Operand;
Expand Down
Expand Up @@ -9,7 +9,7 @@
* @license MIT See LICENSE at the root of the project for more info
*/

namespace PHPCfg\Op\TraitUse;
namespace PHPCfg\Op\TraitUseAdaptation;

use PHPCfg\Operand;
use PHPCfg\Op\TraitUseAdaptation;
Expand Down
4 changes: 2 additions & 2 deletions lib/PHPCfg/Parser.php
Expand Up @@ -15,8 +15,8 @@
use PHPCfg\Op\Stmt\JumpIf;
use PHPCfg\Op\Stmt\TraitUse;
use PHPCfg\Op\Terminal\Return_;
use PHPCfg\Op\TraitUse\Alias;
use PHPCfg\Op\TraitUse\Precedence;
use PHPCfg\Op\TraitUseAdaptation\Alias;
use PHPCfg\Op\TraitUseAdaptation\Precedence;
use PHPCfg\Operand\Literal;
use PHPCfg\Operand\Temporary;
use PHPCfg\Operand\Variable;
Expand Down
4 changes: 2 additions & 2 deletions lib/PHPCfg/Printer.php
Expand Up @@ -128,7 +128,7 @@ protected function renderOp(Op $op)
$result .= "\n use[$index]: " . $this->indent($this->renderOperand($trait_));
}
foreach($op->adaptations as $index => $adaptation) {
if($adaptation instanceof Op\TraitUse\Alias) {
if($adaptation instanceof Op\TraitUseAdaptation\Alias) {
$result .= "\n adaptation[$index]: Alias";
if($adaptation->trait != null) {
$result .= "\n trait:".$this->indent($this->renderOperand($adaptation->trait));
Expand All @@ -150,7 +150,7 @@ protected function renderOp(Op $op)
}
}
}
else if($adaptation instanceof Op\TraitUse\Precedence) {
else if($adaptation instanceof Op\TraitUseAdaptation\Precedence) {
$result .= "\n adaptation[$index]: Insteadof";
if($adaptation->trait != null) {
$result .= "\n trait:".$this->indent($this->renderOperand($adaptation->trait));
Expand Down

0 comments on commit c5d7583

Please sign in to comment.