Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

Commit 1c72411

Browse files
authored
Use DIRECTORY_SEPARATOR
The string '/' cause problems under windows
1 parent 49a0671 commit 1c72411

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Finder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ public function findFeature($name)
457457
$files = $finder->name($fileName)->in($this->findServicesRootPath())->files();
458458
foreach ($files as $file) {
459459
$path = $file->getRealPath();
460-
$serviceName = strstr($file->getRelativePath(), '/', true);
460+
$serviceName = strstr($file->getRelativePath(), DIRECTORY_SEPARATOR, true);
461461
$service = $this->findService($serviceName);
462462
$content = file_get_contents($path);
463463

0 commit comments

Comments
 (0)