diff --git a/Exception/AssetNotFoundException.php b/Exception/AssetNotFoundException.php index 82e8894..fc66f5d 100644 --- a/Exception/AssetNotFoundException.php +++ b/Exception/AssetNotFoundException.php @@ -16,19 +16,19 @@ */ class AssetNotFoundException extends RuntimeException { - private array $alternatives; - /** * @param string $message Exception message to throw * @param array $alternatives List of similar defined names * @param int $code Exception code * @param \Throwable $previous Previous exception used for the exception chaining */ - public function __construct(string $message, array $alternatives = [], int $code = 0, ?\Throwable $previous = null) - { + public function __construct( + string $message, + private array $alternatives = [], + int $code = 0, + ?\Throwable $previous = null, + ) { parent::__construct($message, $code, $previous); - - $this->alternatives = $alternatives; } public function getAlternatives(): array