Skip to content

Commit

Permalink
Update Job.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostwriter committed Dec 3, 2023
1 parent 0ae7c24 commit b6f2800
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Option/Job.php
Expand Up @@ -4,6 +4,8 @@

namespace Ghostwriter\Compliance\Option;

use Ghostwriter\Compliance\Option\ComposerCacheFilesDirectoryFinder;

final readonly class Job
{
/**
Expand Down Expand Up @@ -31,7 +33,7 @@ public static function noop(): self
name: $name,
command: sprintf('echo "%s"', $name),
extensions: [],
composerCacheFilesDirectory: '~/.cache/composer/files',
composerCacheFilesDirectory: container()->invoke(ComposerCacheFilesDirectoryFinder::class),

Check failure on line 36 in src/Option/Job.php

View workflow job for this annotation

GitHub Actions / Psalm on PHP 8.3 - ubuntu-latest - locked

MixedArgument

src/Option/Job.php:36:42: MixedArgument: Argument 4 of Ghostwriter\Compliance\Option\Job::__construct cannot be mixed, expecting string (see https://psalm.dev/030)

Check failure on line 36 in src/Option/Job.php

View workflow job for this annotation

GitHub Actions / Psalm on PHP 8.3 - ubuntu-latest - locked

UndefinedInterfaceMethod

src/Option/Job.php:36:55: UndefinedInterfaceMethod: Method Ghostwriter\Container\Interface\ContainerInterface::invoke does not exist (see https://psalm.dev/181)

Check failure on line 36 in src/Option/Job.php

View workflow job for this annotation

GitHub Actions / Psalm on PHP 8.3 - ubuntu-latest - locked

MixedArgument

src/Option/Job.php:36:42: MixedArgument: Argument 4 of Ghostwriter\Compliance\Option\Job::__construct cannot be mixed, expecting string (see https://psalm.dev/030)

Check failure on line 36 in src/Option/Job.php

View workflow job for this annotation

GitHub Actions / Psalm on PHP 8.3 - ubuntu-latest - locked

UndefinedInterfaceMethod

src/Option/Job.php:36:55: UndefinedInterfaceMethod: Method Ghostwriter\Container\Interface\ContainerInterface::invoke does not exist (see https://psalm.dev/181)
composerJsonPath: $currentDirectory,
composerLockPath: $currentDirectory,
dependency: 'locked'
Expand Down

0 comments on commit b6f2800

Please sign in to comment.