The call to BookingDateslotStrategy::__construct() has too many arguments starting with new \Timegridio\Concierge\Booking\Timetable().
This check compares calls to functions or methods with their respective definitions.
If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the
check may pick up the wrong definition and report false positives. One codebase
where this has been known to happen is Wordpress.
In this case you can add the @ignorePhpDoc
annotation to the duplicate definition and it will be ignored.
It seems like new \Timegridio\Concierg...ge\Booking\Timetable()) of type object<Timegridio\Concie...ookingDateslotStrategy> is incompatible with the declared type object<Timegridio\Concie...ookingTimeslotStrategy> of property $strategy.
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..
Loading history...
36
break;
37
default:
38
throw new StrategyNotRecognizedException($strategyId);
39
}
40
}
41
42
public function buildTimetable($vacancies, $starting = 'today', $days = 1)
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress.
In this case you can add the
@ignore
PhpDoc annotation to the duplicate definition and it will be ignored.