Skip to content

Commit

Permalink
Use CPP where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-daubois committed Jul 23, 2024
1 parent b27a33c commit b45a5d5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Exception/AssetNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b45a5d5

Please sign in to comment.