Commit f9605c1a authored by Frédéric G. Marand's avatar Frédéric G. Marand Committed by Gaus Surahman
Browse files

Issue #3265909 by fgm: Warning with PHP 8.1: Deprecated function: trim()

parent a3b7f896
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line

Blazy 8.x-2.0-dev, 2022-02-23
-----------------------------
- Issue #3265909 by fgm: Warning with PHP 8.1: Deprecated function: trim().

Blazy 8.x-2.0-dev, 2022-02-20
-----------------------------
- Added core D9.2 webp client-side fallback for those who want to support old
+1 −1
Original line number Diff line number Diff line
@@ -290,7 +290,7 @@ abstract class BlazyManagerBase implements BlazyManagerInterface {
   */
  public function getIoSettings(array $attach = []) {
    $io = [];
    $thold = trim($this->configLoad('io.threshold'));
    $thold = trim($this->configLoad('io.threshold') ?? "");
    $thold = str_replace(['[', ']'], '', $thold ?: '0');

    // @todo re-check, looks like the default 0 is broken sometimes.