diff --git a/src/ClientResolver.php b/src/ClientResolver.php index 7c9113b7c6..781c3fb0bb 100644 --- a/src/ClientResolver.php +++ b/src/ClientResolver.php @@ -1249,7 +1249,7 @@ public static function _apply_suppress_php_deprecation_warning($value, &$args) \Aws\boolean_value($_SERVER["AWS_SUPPRESS_PHP_DEPRECATION_WARNING"]); } elseif (!empty($_ENV["AWS_SUPPRESS_PHP_DEPRECATION_WARNING"])) { $args['suppress_php_deprecation_warning'] = - \Aws\boolean_value($_SERVER["AWS_SUPPRESS_PHP_DEPRECATION_WARNING"]); + \Aws\boolean_value($_ENV["AWS_SUPPRESS_PHP_DEPRECATION_WARNING"]); } if ($args['suppress_php_deprecation_warning'] === false