Skip to content

Commit 35de71e

Browse files
authored
chore(core): fixes to path helper (#744)
1 parent 0dacd10 commit 35de71e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/Tempest/Core/src/functions.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,22 @@
55
namespace Tempest {
66

77
use Closure;
8+
use Stringable;
89
use Tempest\Core\Composer;
910
use Tempest\Core\DeferredTasks;
1011
use Tempest\Core\Kernel;
11-
use function Tempest\Support\path;
12+
use function Tempest\Support\path as supportPath;
13+
use Tempest\Support\PathHelper;
1214
use function Tempest\Support\str;
1315

16+
/**
17+
* Creates and sanitizes a file system path from the given `$parts`. The resulting path is not checked against the file system.
18+
*/
19+
function path(Stringable|string ...$parts): PathHelper
20+
{
21+
return supportPath(...$parts);
22+
}
23+
1424
/**
1525
* Creates a path scoped within the root of the project
1626
*/

0 commit comments

Comments
 (0)