diff --git a/app/src/Config.php b/app/src/Config.php index 6151760..643bf43 100644 --- a/app/src/Config.php +++ b/app/src/Config.php @@ -16,7 +16,13 @@ class Config $this->container = $container; } - /** Get the value of a configuration variable. */ + /** + * Get the value of a configuration variable. + * + * @param mixed $default + * + * @return mixed + */ public function get(string $key, $default = null) { try { diff --git a/app/src/Exceptions/InvalidConfiguration.php b/app/src/Exceptions/InvalidConfiguration.php index 5770629..7e2f941 100644 --- a/app/src/Exceptions/InvalidConfiguration.php +++ b/app/src/Exceptions/InvalidConfiguration.php @@ -6,7 +6,11 @@ use RuntimeException; final class InvalidConfiguration extends RuntimeException { - /** Create an exception from a configuration option and value. */ + /** + * Create an exception from a configuration option and value. + * + * @param mixed $value + */ public static function fromConfig(string $option, $value): self { return new static( diff --git a/app/src/ViewFunctions/Config.php b/app/src/ViewFunctions/Config.php index eb5cafd..63174dd 100644 --- a/app/src/ViewFunctions/Config.php +++ b/app/src/ViewFunctions/Config.php @@ -18,7 +18,11 @@ class Config extends ViewFunction $this->config = $config; } - /** Retrieve an item from the view config. */ + /** + * Retrieve an item from the view config. + * + * @param mixed $default + */ public function __invoke(string $key, $default = null) { return $this->config->get($key, $default);