Skip to content

Commit

Permalink
Failing test that show that imports are duplicated if there is more t…
Browse files Browse the repository at this point in the history
…han one of the same global class
  • Loading branch information
matt-h committed Sep 21, 2023
1 parent a9dcba7 commit 5440708
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/fixtures/facade-aliases/complex.after.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,10 @@ public function noop()
SomeApp::make('app');
Another\Arr::wrap('arr');
}

public function duplicateGlobals()
{
App::make('app');
App::make('app');
}
}
6 changes: 6 additions & 0 deletions tests/fixtures/facade-aliases/complex.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,10 @@ public function noop()
SomeApp::make('app');
Another\Arr::wrap('arr');
}

public function duplicateGlobals()
{
\App::make('app');
\App::make('app');
}
}

0 comments on commit 5440708

Please sign in to comment.