It seems like internalException() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
18
$this->/** @scrutinizer ignore-call */
19
internalException();
Loading history...
19
}
20
21
/**
22
* @internal
23
*/
24
public function meta(?string $key = null): object|int|string|null
In this branch, the function will implicitly return null which is incompatible with the type-hinted return object. Consider adding a return statement or allowing null as return value.
For hinted functions/methods where all return statements with the correct type are only reachable via conditions, ?null? gets implicitly returned which may be incompatible with the hinted type.
Let?s take a look at an example:
interfaceReturnsInt{publicfunctionreturnsIntHinted():int;}classMyClassimplementsReturnsInt{publicfunctionreturnsIntHinted():int{if(foo()){return123;}// here: null is implicitly returned}}
Loading history...
43
}
44
45
/**
46
* @internal
47
*/
48
public function handleFFMpegQueue(bool $isLastOne = false, bool $standalone = false): void