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 e5fdcca commit 2d5b59dCopy full SHA for 2d5b59d
src/Std/Collection.php
@@ -93,7 +93,7 @@ public function add(string $name, $value): self
93
*/
94
public function get(string $key, mixed $default = null): mixed
95
{
96
- return $this->has($key) ? $this->data[$key] : $default;
+ return $this->data[$key] ?? $default;
97
}
98
99
/**
0 commit comments