It seems like dispatch() 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
25
$this->/** @scrutinizer ignore-call */
26
dispatch(PriorityChangedEvent::CHANGED, new PriorityChangedEvent($this, $priority, $oldPriority));
The method dispatch() does not exist on Graze\ParallelProcess\Event\DispatcherInterface. It seems like you code against a sub-type of said class. However, the method does not exist in Graze\ParallelProcess\RunInterface or Graze\ParallelProcess\PoolInterface. Are you sure you never get one of those?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
25
$this->/** @scrutinizer ignore-call */
26
dispatch(PriorityChangedEvent::CHANGED, new PriorityChangedEvent($this, $priority, $oldPriority));
The method dispatch() does not exist on Graze\ParallelProcess\PrioritisedInterface. Since it exists in all sub-types, consider adding an abstract or default implementation to Graze\ParallelProcess\PrioritisedInterface.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
25
$this->/** @scrutinizer ignore-call */
26
dispatch(PriorityChangedEvent::CHANGED, new PriorityChangedEvent($this, $priority, $oldPriority));