It seems like $collections of type array<integer,App\GameBe...s\Score\ScoreInterface> is incompatible with the declared type App\GameBetting\Business...ts\Score\ScoreInterface of property $collections.
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..
$this->collections of type App\GameBetting\Business...ts\Score\ScoreInterface is incompatible with the type array expected by parameter $array of usort().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
33
usort(/** @scrutinizer ignore-type */ $this->collections, function ($a, $b) {
It seems like array_reverse($this->collections) of type array is incompatible with the declared type App\GameBetting\Business...ts\Score\ScoreInterface of property $collections.
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..
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..