Issues (2551)

src/Application/InvocationContext.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Jabe\Application;
4
5
use Jabe\Delegate\BaseDelegateExecutionInterface;
6
7
class InvocationContext
8
{
9
    protected $execution;
10
11
    public function __construct(BaseDelegateExecutionInterface $execution)
12
    {
13
        $this->execution = $execution;
14
    }
15
16
    public function getExecution(): ?BaseDelegateExecutionInterface
17
    {
18
        return $this->execution;
19
    }
20
21
    public function __toString()
22
    {
23
        return "InvocationContext [execution=" . $this->execution . "]";
0 ignored issues
show
Are you sure $this->execution of type Jabe\Delegate\BaseDelegateExecutionInterface can be used in concatenation? Consider adding a __toString()-method. ( Ignorable by Annotation )

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

23
        return "InvocationContext [execution=" . /** @scrutinizer ignore-type */ $this->execution . "]";
Loading history...
24
    }
25
}
26