From 99d75f1be8b8ebb6cf0bdecd204370eb7051e706 Mon Sep 17 00:00:00 2001 From: sgiehl Date: Tue, 15 Oct 2024 15:10:52 +0200 Subject: [PATCH] suppress errors --- core/DI.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/core/DI.php b/core/DI.php index 78125bfdce3..288c67d40de 100644 --- a/core/DI.php +++ b/core/DI.php @@ -24,7 +24,7 @@ class DI */ public static function value($value) { - return PHPDI\value($value); + return @PHPDI\value($value); } /** @@ -34,7 +34,7 @@ public static function value($value) */ public static function create(?string $className = null) { - return PHPDI\create($className); + return @PHPDI\create($className); } /** @@ -44,7 +44,7 @@ public static function create(?string $className = null) */ public static function autowire(?string $className = null) { - return PHPDI\autowire($className); + return @PHPDI\autowire($className); } /** @@ -54,7 +54,7 @@ public static function autowire(?string $className = null) */ public static function factory($factory) { - return PHPDI\factory($factory); + return @PHPDI\factory($factory); } /** @@ -64,7 +64,7 @@ public static function factory($factory) */ public static function decorate($callable) { - return PHPDI\decorate($callable); + return @PHPDI\decorate($callable); } /** @@ -74,7 +74,7 @@ public static function decorate($callable) */ public static function get(string $entryName) { - return PHPDI\get($entryName); + return @PHPDI\get($entryName); } /** @@ -85,7 +85,7 @@ public static function get(string $entryName) */ public static function env(string $variableName, $defaultValue = null) { - return PHPDI\env($variableName, $defaultValue); + return @PHPDI\env($variableName, $defaultValue); } /** @@ -95,7 +95,7 @@ public static function env(string $variableName, $defaultValue = null) */ public static function add($values) { - return PHPDI\add($values); + return @PHPDI\add($values); } /** @@ -105,6 +105,6 @@ public static function add($values) */ public static function string(string $expression) { - return PHPDI\string($expression); + return @PHPDI\string($expression); } }