Skip to content

Commit 7343ebf

Browse files
committed
fabbot patch
1 parent 1d6cedc commit 7343ebf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Configurator/ComposerScriptsConfigurator.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Composer\Factory;
1515
use Composer\Json\JsonFile;
1616
use Composer\Json\JsonManipulator;
17-
use Symfony\Component\Filesystem\Path;
1817
use Symfony\Flex\Lock;
1918
use Symfony\Flex\Recipe;
2019
use Symfony\Flex\Update\RecipeUpdate;
@@ -52,9 +51,9 @@ public function update(RecipeUpdate $recipeUpdate, array $originalConfig, array
5251
$json = new JsonFile(Factory::getComposerFile());
5352
$jsonPath = $json->getPath();
5453
if (str_starts_with($jsonPath, $recipeUpdate->getRootDir())) {
55-
$jsonPath = substr($jsonPath, strlen($recipeUpdate->getRootDir()));
54+
$jsonPath = substr($jsonPath, \strlen($recipeUpdate->getRootDir()));
5655
}
57-
$jsonPath = ltrim($jsonPath, '/\\');
56+
$jsonPath = ltrim($jsonPath, '/\\');
5857

5958
$recipeUpdate->setOriginalFile(
6059
$jsonPath,

0 commit comments

Comments
 (0)