Issues (2551)

src/Impl/Cmd/PatchExecutionVariablesCmd.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Jabe\Impl\Cmd;
4
5
use Jabe\Impl\Interceptor\CommandContext;
6
use Jabe\Impl\Persistence\Entity\PropertyChange;
7
8
class PatchExecutionVariablesCmd extends AbstractPatchVariablesCmd
9
{
10
    public function __construct(string $executionId, array $modifications, array $deletions, bool $isLocal)
11
    {
12
        parent::__construct($executionId, $modifications, $deletions, $isLocal);
13
    }
14
15
    protected function getSetVariableCmd(): SetExecutionVariablesCmd
16
    {
17
        return new SetExecutionVariablesCmd($this->entityId, $this->variables, $this->isLocal);
18
    }
19
20
    protected function getRemoveVariableCmd(): RemoveExecutionVariablesCmd
21
    {
22
        return new RemoveExecutionVariablesCmd($this->entityId, $this->deletions, $this->isLocal);
23
    }
24
25
    public function logVariableOperation(CommandContext $commandContext): void
26
    {
27
        $commandContext->getOperationLogManager()->logVariableOperation(
28
            $this->getLogEntryOperation(),
29
            $this->entityId,
30
            null,
0 ignored issues
show
null of type null is incompatible with the type string expected by parameter $taskId of Jabe\Impl\Persistence\En...:logVariableOperation(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

30
            /** @scrutinizer ignore-type */ null,
Loading history...
31
            PropertyChange::emptyChange()
32
        );
33
    }
34
}
35