Skip to content
Snippets Groups Projects

Issue #3357578: str_starts_with($path, '/') does not correctly detect absolute paths on Windows

Merged Issue #3357578: str_starts_with($path, '/') does not correctly detect absolute paths on Windows
1 unresolved thread
1 unresolved thread
Files
9
@@ -7,6 +7,7 @@ namespace Drupal\package_manager\PathExcluder;
@@ -7,6 +7,7 @@ namespace Drupal\package_manager\PathExcluder;
use Drupal\package_manager\ComposerInspector;
use Drupal\package_manager\ComposerInspector;
use Drupal\package_manager\Event\CollectPathsToExcludeEvent;
use Drupal\package_manager\Event\CollectPathsToExcludeEvent;
use Drupal\package_manager\PathLocator;
use Drupal\package_manager\PathLocator;
 
use PhpTuf\ComposerStager\Infrastructure\Factory\Path\PathFactoryInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
/**
/**
@@ -28,9 +29,12 @@ final class GitExcluder implements EventSubscriberInterface {
@@ -28,9 +29,12 @@ final class GitExcluder implements EventSubscriberInterface {
* The path locator service.
* The path locator service.
* @param \Drupal\package_manager\ComposerInspector $composerInspector
* @param \Drupal\package_manager\ComposerInspector $composerInspector
* The Composer inspector service.
* The Composer inspector service.
 
* @param \PhpTuf\ComposerStager\Infrastructure\Factory\Path\PathFactoryInterface $path_factory
 
* The path factory service.
*/
*/
public function __construct(PathLocator $path_locator, private readonly ComposerInspector $composerInspector) {
public function __construct(PathLocator $path_locator, private readonly ComposerInspector $composerInspector, PathFactoryInterface $path_factory) {
$this->pathLocator = $path_locator;
$this->pathLocator = $path_locator;
 
$this->pathFactory = $path_factory;
}
}
/**
/**
Loading