Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mamazu committed Mar 31, 2024
1 parent 6640629 commit caa112a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion lib/CodeBuilder/Adapter/TolerantParser/TolerantUpdater.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
use Phpactor\CodeBuilder\Adapter\TolerantParser\Updater\TraitUpdater;
use Phpactor\TextDocument\TextEdits;
use Phpactor\WorseReflection\Core\Util\NodeUtil;
use function Amp\Promise\wait;
use Microsoft\PhpParser\Token;

class TolerantUpdater implements Updater
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function memberDeclarationsNode(ClassLike|ObjectCreationExpression $class
{
if ($classNode instanceof ClassDeclaration || $classNode instanceof ObjectCreationExpression) {
$classNode = $classNode->classMembers;
Assert::isInstanceOf( $classNode, ClassMembersNode::class);
Assert::isInstanceOf($classNode, ClassMembersNode::class);

return $classNode;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use Microsoft\PhpParser\Node\TraitUseClause;
use Microsoft\PhpParser\TokenKind;
use Phpactor\WorseReflection\Bridge\TolerantParser\Patch\TolerantQualifiedNameResolver;
use Phpactor\WorseReflection\Core\Exception\NotFound;
use Phpactor\WorseReflection\Core\Util\QualifiedNameListUtil;
use Phpactor\WorseReflection\Core\Visibility;
use RuntimeException;
Expand Down

0 comments on commit caa112a

Please sign in to comment.