public function getPhotos(
$photosetId,
$userId = null,
$extras = null,
$perPage = null,
$page = null,
$privacyFilter = null,
$media = null
)
With PHP 8, we'll want to add a return type to the methods. Currently in getPhotos(), this is array|bool, but we could make it ?array, and return null instead of false.
It appears that returning false indicates some sort of error, though, so perhaps that's not the best approach.
With PHP 8, we'll want to add a return type to the methods. Currently in getPhotos(), this is array|bool, but we could make it ?array, and return null instead of false.
It appears that returning false indicates some sort of error, though, so perhaps that's not the best approach.