Browse Source

Attempt to please phpstan.

mscherer 6 years ago
parent
commit
2b54e89ca3
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/Core/InstanceConfigTrait.php
  2. 1 1
      src/Core/StaticConfigTrait.php

+ 1 - 1
src/Core/InstanceConfigTrait.php

@@ -192,7 +192,7 @@ trait InstanceConfigTrait
      *
      * The config value for this key must exist, it can never be null.
      *
-     * @param string $key The key to get.
+     * @param string|null $key The key to get.
      * @return mixed Configuration data at the named key
      * @throws \InvalidArgumentException
      */

+ 1 - 1
src/Core/StaticConfigTrait.php

@@ -181,7 +181,7 @@ trait StaticConfigTrait
      *
      * The config value for this key must exist, it can never be null.
      *
-     * @param string $key The name of the configuration.
+     * @param string|null $key The name of the configuration.
      * @return mixed Configuration data at the named key.
      * @throws \InvalidArgumentException If value does not exist.
      */