It seems like Mockery::mock(Urbanplum\...\DotnetDateTime::class) of type Mockery\MockInterface is incompatible with the declared type Urbanplum\DotnetDateTime\DotnetDateTime of property $dotnetDateTime.
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...
25
$this->formatter = new DateFormatterBasic($this->dotnetDateTime);
$this->dotnetDateTime of type Mockery\MockInterface is incompatible with the type Urbanplum\DotnetDateTime\DotnetDateTime expected by parameter $dotnetDateTime of Graze\CiffRenderer\DateF...terBasic::__construct().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
25
$this->formatter = new DateFormatterBasic(/** @scrutinizer ignore-type */ $this->dotnetDateTime);
The method shouldReceive() does not exist on Urbanplum\DotnetDateTime\DotnetDateTime.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
34
->/** @scrutinizer ignore-call */
35
shouldReceive('formatToPhp')
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
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. Please note the @ignore annotation hint above.
$dateTime of type Mockery\MockInterface is incompatible with the type DateTimeInterface expected by parameter $date of Graze\CiffRenderer\DateF...ormatterBasic::format().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
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..