countVisitingWatchersMultiple is documented to take int|null as second
parameter, but array is given here. The options array is documented to
have a minimumWatchers key, so fix it by using that key.
Caught by PhanTypeMismatchArgument, to be enabled with I34d65fe3ff191.
Change-Id: I0271edae3442fc1adafabf623beeb7f2c4411d6c
}
public function countWatchersMultiple( array $targets, array $options = [] ) {
- return $this->actualStore->countVisitingWatchersMultiple( $targets, $options );
+ return $this->actualStore->countVisitingWatchersMultiple(
+ $targets,
+ $options['minimumWatchers'] ?? null
+ );
}
public function countVisitingWatchersMultiple(