Skip to content

Commit

Permalink
suppress errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Oct 15, 2024
1 parent 3fe4109 commit 99d75f1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions core/DI.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class DI
*/
public static function value($value)
{
return PHPDI\value($value);
return @PHPDI\value($value);
}

/**
Expand All @@ -34,7 +34,7 @@ public static function value($value)
*/
public static function create(?string $className = null)
{
return PHPDI\create($className);
return @PHPDI\create($className);
}

/**
Expand All @@ -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);
}

/**
Expand All @@ -54,7 +54,7 @@ public static function autowire(?string $className = null)
*/
public static function factory($factory)
{
return PHPDI\factory($factory);
return @PHPDI\factory($factory);
}

/**
Expand All @@ -64,7 +64,7 @@ public static function factory($factory)
*/
public static function decorate($callable)
{
return PHPDI\decorate($callable);
return @PHPDI\decorate($callable);
}

/**
Expand All @@ -74,7 +74,7 @@ public static function decorate($callable)
*/
public static function get(string $entryName)
{
return PHPDI\get($entryName);
return @PHPDI\get($entryName);
}

/**
Expand All @@ -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);
}

/**
Expand All @@ -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);
}

/**
Expand All @@ -105,6 +105,6 @@ public static function add($values)
*/
public static function string(string $expression)
{
return PHPDI\string($expression);
return @PHPDI\string($expression);
}
}

0 comments on commit 99d75f1

Please sign in to comment.