mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
fix: overriding cli argument --cache-directory
This commit is contained in:
@ -30,10 +30,12 @@ final class Cache implements HandlesArguments
|
|||||||
*/
|
*/
|
||||||
public function handleArguments(array $arguments): array
|
public function handleArguments(array $arguments): array
|
||||||
{
|
{
|
||||||
|
if (! $this->hasArgument('--cache-directory', $arguments)) {
|
||||||
$arguments = $this->pushArgument(
|
$arguments = $this->pushArgument(
|
||||||
sprintf('--cache-directory=%s', realpath(self::TEMPORARY_FOLDER)),
|
sprintf('--cache-directory=%s', realpath(self::TEMPORARY_FOLDER)),
|
||||||
$arguments
|
$arguments
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (! $this->hasArgument('--parallel', $arguments)) {
|
if (! $this->hasArgument('--parallel', $arguments)) {
|
||||||
return $this->pushArgument('--cache-result', $arguments);
|
return $this->pushArgument('--cache-result', $arguments);
|
||||||
|
|||||||
Reference in New Issue
Block a user