This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
28
{
29
/**
30
* @var Pipeline
31
*/
32
private $pipeline;
33
34
public function __construct(Pipeline $pipeline)
35
{
36
$this->pipeline = $pipeline;
37
}
38
39
public function createConfigurationFor(Institution $institution)
40
{
41
$command = new CreateInstitutionConfigurationCommand();
It seems like $institution of type object<Surfnet\Stepup\Co...tion\Value\Institution> is incompatible with the declared type string of property $institution.
Our type inference engine has found an assignment to a property that is incompatible
with the declared type of that property.
Either this assignment is in error or the assigned type should be added
to the documentation/type hint for that property..
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.