diff --git a/src/Tempest/Core/src/functions.php b/src/Tempest/Core/src/functions.php index 9279d98ce..483fe675b 100644 --- a/src/Tempest/Core/src/functions.php +++ b/src/Tempest/Core/src/functions.php @@ -5,12 +5,22 @@ namespace Tempest { use Closure; + use Stringable; use Tempest\Core\Composer; use Tempest\Core\DeferredTasks; use Tempest\Core\Kernel; - use function Tempest\Support\path; + use function Tempest\Support\path as supportPath; + use Tempest\Support\PathHelper; use function Tempest\Support\str; + /** + * Creates and sanitizes a file system path from the given `$parts`. The resulting path is not checked against the file system. + */ + function path(Stringable|string ...$parts): PathHelper + { + return supportPath(...$parts); + } + /** * Creates a path scoped within the root of the project */