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 0dacd10 commit 35de71eCopy full SHA for 35de71e
src/Tempest/Core/src/functions.php
@@ -5,12 +5,22 @@
5
namespace Tempest {
6
7
use Closure;
8
+ use Stringable;
9
use Tempest\Core\Composer;
10
use Tempest\Core\DeferredTasks;
11
use Tempest\Core\Kernel;
- use function Tempest\Support\path;
12
+ use function Tempest\Support\path as supportPath;
13
+ use Tempest\Support\PathHelper;
14
use function Tempest\Support\str;
15
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
+
24
/**
25
* Creates a path scoped within the root of the project
26
*/
0 commit comments