We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5065a0d commit 33a166cCopy full SHA for 33a166c
lib/Endpoint/Binder/Providers/ValueProvider.php
@@ -25,14 +25,11 @@ public function __construct(array $values = [])
25
26
/**
27
* @return mixed Finds an entry of the container by its identifier and returns it.
28
+ * Return null if the entry does not exist.
29
*/
30
public function getValue(string $key)
31
{
- if (isset($this->values[$key])) {
32
- return $this->values[$key];
33
- }
34
-
35
- throw new \Exception("No entry was found");
+ return $this->values[$key] ?? null;
36
}
37
38
0 commit comments