Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Fix multiple replacement on the same path #541

Merged
merged 1 commit into from
Aug 18, 2023

Conversation

erikn69
Copy link
Contributor

@erikn69 erikn69 commented Jul 17, 2023

If you have small, common paths on the server, it will replace all matches, not just the prefix

Running Demo

$xdebugReplacements = [
      '/App' => 'C:\local',
      '/www' => 'C:\local',
  ];
$file = '/App/MyApp/www/Controller/AppController.php';
$class->getXdebugLink($file);
// Expected:
// "C:\local/MyApp/www/Controller/AppController.php"
// Actual:
// "C:\local/MyAppC:\local/ControllerC:\localController.php"

@barryvdh barryvdh merged commit 48c36d1 into maximebf:master Aug 18, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants