Skip to content

Commit e5ee809

Browse files
authored
Add default return to getShared function
1 parent 39a073e commit e5ee809

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ResponseFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ public function share($key, $value = null)
3030
}
3131
}
3232

33-
public function getShared($key = null)
33+
public function getShared($key = null, $default = null)
3434
{
3535
if ($key) {
36-
return Arr::get($this->sharedProps, $key);
36+
return Arr::get($this->sharedProps, $key, $default);
3737
}
3838

3939
return $this->sharedProps;

0 commit comments

Comments
 (0)