`ImageUtil::browserSupportsWebP()` was renamed to `ImageUtil::browserSupportsWebp()` for consistency with other methods.
return false;
}
- return $forceWebP || ($forceWebP === null && ImageUtil::browserSupportsWebP());
+ return $forceWebP || ($forceWebP === null && ImageUtil::browserSupportsWebp());
}
/**
{
if (
$forceWebP === true
- || ($forceWebP === null && $this->hasWebP && ImageUtil::browserSupportsWebP())
+ || ($forceWebP === null && $this->hasWebP && ImageUtil::browserSupportsWebp())
) {
$fileExtension = "webp";
} else {
*/
public function getFilename(?bool $forceWebP = null): string
{
- $useWebP = $forceWebP || ($this->coverPhotoHasWebP && $forceWebP === null && ImageUtil::browserSupportsWebP());
+ $useWebP = $forceWebP || ($this->coverPhotoHasWebP && $forceWebP === null && ImageUtil::browserSupportsWebp());
return \substr(
$this->coverPhotoHash,
*
* @since 5.4
*/
- public static function browserSupportsWebP(): bool
+ public static function browserSupportsWebp(): bool
{
static $supportsWebP = null;