From 3e278b3bd34369ca92a161c6f30b1c5d7390da97 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 21 Mar 2021 18:47:15 +0100 Subject: [PATCH] fix PHP 8.0 Fatal error: Array and string offset access syntax with curly braces is no longer supported --- api/src/Asyncservice.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/Asyncservice.php b/api/src/Asyncservice.php index ba1ce83852..55862d7813 100644 --- a/api/src/Asyncservice.php +++ b/api/src/Asyncservice.php @@ -715,10 +715,10 @@ class Asyncservice if ($this->debug) error_log(__METHOD__.'() line '.++$n.": $line"); $parts = explode(' ',$line,6); - if ($line{0} == '#' || count($parts) < 6 || ($parts[5]{0} != '/' && substr($parts[5],0,3) != 'php')) + if ($line[0] == '#' || count($parts) < 6 || ($parts[5][0] != '/' && substr($parts[5],0,3) != 'php')) { // ignore comments - if ($line{0} != '#') + if ($line[0] != '#') { $times['error'] .= $line; }