specified explicit type in function parameter
All checks were successful
default-pipeline default-pipeline #176
All checks were successful
default-pipeline default-pipeline #176
This commit is contained in:
parent
8d8074977b
commit
c626e36bbb
@ -60,7 +60,7 @@ class PlaceRepository
|
||||
return $places;
|
||||
}
|
||||
|
||||
private function getRandomForMapWithValidPano($numberOfPlaces, $select, array &$exclude, $pickRandomInt = null): ?Place
|
||||
private function getRandomForMapWithValidPano($numberOfPlaces, $select, array &$exclude, ?callable $pickRandomInt = null): ?Place
|
||||
{
|
||||
do {
|
||||
$numberOfPlacesLeft = $numberOfPlaces - count($exclude);
|
||||
@ -79,7 +79,7 @@ class PlaceRepository
|
||||
return $place;
|
||||
}
|
||||
|
||||
private function selectRandomFromDbForMap($numberOfPlacesLeft, $select, array $exclude, $pickRandomInt): ?Place
|
||||
private function selectRandomFromDbForMap($numberOfPlacesLeft, $select, array $exclude, ?callable $pickRandomInt): ?Place
|
||||
{
|
||||
if($numberOfPlacesLeft <= 0)
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user