@@ -26,10 +26,10 @@ class SentryLogger implements ILogger
2626 public const CONFIG_OPTIONS = 'options ' ;
2727
2828 /** @var mixed[] */
29- protected $ configuration ;
29+ protected array $ configuration ;
3030
3131 /** @var string[] */
32- private $ allowedPriority = [ILogger::ERROR , ILogger::EXCEPTION , ILogger::CRITICAL ];
32+ private array $ allowedPriority = [ILogger::ERROR , ILogger::EXCEPTION , ILogger::CRITICAL ];
3333
3434 /**
3535 * @param mixed[] $configuration
@@ -58,9 +58,8 @@ public function setAllowedPriority(array $allowedPriority): void
5858 /**
5959 * @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint
6060 * @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint
61- * @param mixed $message
6261 */
63- public function log ($ message , string $ priority = ILogger::INFO ): void
62+ public function log (mixed $ message , string $ priority = ILogger::INFO ): void
6463 {
6564 if (!in_array ($ priority , $ this ->allowedPriority , true )) {
6665 return ;
@@ -77,10 +76,7 @@ public function log($message, string $priority = ILogger::INFO): void
7776 $ this ->makeRequest ($ message , $ scope );
7877 }
7978
80- /**
81- * @param mixed $message
82- */
83- protected function makeRequest ($ message , Scope $ scope ): void
79+ protected function makeRequest (mixed $ message , Scope $ scope ): void
8480 {
8581 $ client = ClientBuilder::create ($ this ->configuration [self ::CONFIG_OPTIONS ] + ['dsn ' => $ this ->configuration [self ::CONFIG_URL ]])
8682 ->getClient ();
0 commit comments