Skip to content

Commit c388915

Browse files
calebdwpeterfox
andauthored
chore: clean up app to resolve (#434)
Co-authored-by: Peter Fox <peter.fox@peterfox.me>
1 parent 2ee7405 commit c388915

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Rector/FuncCall/AppToResolveRector.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ public function getNodeTypes(): array
4242
*/
4343
public function refactor(Node $node): ?FuncCall
4444
{
45-
if (
46-
! $node->name instanceof Name
47-
|| ! $this->isName($node->name, 'app')
48-
) {
45+
if (! $this->isName($node, 'app')) {
4946
return null;
5047
}
5148

0 commit comments

Comments
 (0)