Skip to content

Commit

Permalink
The folder path has been normalized
Browse files Browse the repository at this point in the history
  • Loading branch information
alikhosravidev committed Dec 18, 2023
1 parent 442174c commit d0e5425
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Features/CheckImports/CheckImportsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public function handle()

$fileName = ltrim($this->option('file'), '=');
$folder = ltrim($this->option('folder'), '=');
$folder = rtrim($folder, '/\\');

$routeFiles = FilePath::removeExtraPaths(RoutePaths::get(), $fileName, $folder);
$classMapFiles = FilePath::removeExtraPaths(ComposerJson::getClassMaps(base_path()), $fileName, $folder);
Expand Down
2 changes: 1 addition & 1 deletion tests/CheckImports/CheckClassReferencesAreValidTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function check()
{
$absPath = __DIR__.'/wongImport.stub';
$tokens = token_get_all(file_get_contents($absPath));
CheckClassReferencesAreValid::$extraCorrectImportsHandler = MockHandlers\MockExtraImportsHandler::class;
CheckClassReferencesAreValid::$extraCorrectImportsHandler = MockExtraImportsHandler::class;
CheckClassReferencesAreValid::$extraWrongImportsHandler = MockHandlers\MockerUnusedWrongImportsHandler::class;
CheckClassReferencesAreValid::$wrongClassRefsHandler = MockHandlers\MockWrongClassRefsHandler::class;

Expand Down

0 comments on commit d0e5425

Please sign in to comment.