We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76dd2dc commit d15b0b2Copy full SHA for d15b0b2
src/Task.php
@@ -2,6 +2,7 @@
2
namespace Gt\Build;
3
4
use Webmozart\Glob\Glob;
5
+use Webmozart\PathUtil\Path;
6
7
class Task {
8
protected $absolutePath;
@@ -17,7 +18,11 @@ class Task {
17
18
public function __construct(string $basePath, string $pathMatch, $details) {
19
$basePath = $this->expandRelativePath($basePath);
20
$this->pathMatch = $pathMatch;
- $this->absolutePath = $basePath . "/" . $this->pathMatch;
21
+ $this->absolutePath = implode(DIRECTORY_SEPARATOR, [
22
+ $basePath,
23
+ $this->pathMatch,
24
+ ]);
25
+ $this->absolutePath = Path::canonicalize($this->absolutePath);
26
$this->setDetails($details);
27
}
28
0 commit comments