Skip to content

Commit 4951d98

Browse files
committed
updating cache and helpers
1 parent 723cf32 commit 4951d98

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/Cache/AbstractManifestCache.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -418,17 +418,17 @@ private function getFullPath($type, string $cacheType, $name = ''): string
418418
$realPath = Helpers::getProjectPaths($path);
419419

420420
if (!\is_dir($realPath) && $pathAlternative) {
421-
$realPath = Helpers::getProjectPaths($pathAlternative);
421+
$realPath = $pathAlternative;
422422
}
423423

424424
if ($pathCustom) {
425425
$realPath = $pathCustom;
426426
}
427427

428428
if (!$name) {
429-
return Helpers::joinPaths([$realPath, $fileName]);
429+
return Helpers::getProjectPaths($realPath, [$fileName]);
430430
}
431431

432-
return Helpers::joinPaths([$realPath, $name, $fileName]);
432+
return Helpers::getProjectPaths($realPath, [$name, $fileName]);
433433
}
434434
}

src/Helpers/DeprecatedTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ trait DeprecatedTrait
2323
* @param string $path Absolute path to.
2424
*
2525
* @throws InvalidManifest If the manifest is not allowed.
26-
*
26+
*
2727
* @deprecated 10.0.0 This method is deprecated and will be removed in the next major release. Every component and block has $manifest variable available by default.
2828
*
2929
* @return array<string, mixed>

src/Helpers/Helpers.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
namespace EightshiftLibs\Helpers;
1212

13-
use EightshiftLibs\Exception\InvalidManifest;
1413
use EightshiftLibs\Exception\InvalidPath;
1514

1615
/**

0 commit comments

Comments
 (0)