Skip to content

Commit 3ce84e2

Browse files
authored
fix: Parameter type (#83)
* fix: Parameter type
1 parent 8edee93 commit 3ce84e2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
All notable changes to `glorand/laravel-model-settings` will be documented in this file
44

5+
## 4.2.2 - 2021-04-07
6+
### Fix param type
7+
58
## 4.2.1 - 2020-12-14
69
### Added
710
- PHP8 support

src/Contracts/SettingsManagerContract.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function apply(array $settings = []): self;
2020
* Fetches a value from the settings.
2121
*
2222
* @param string|null $path if null returns all the settings array
23-
* @param null $default default value to return if the path does not exist
23+
* @param mixed $default default value to return if the path does not exist
2424
* @return mixed
2525
*/
2626
public function get(string $path = null, $default = null);
@@ -29,7 +29,7 @@ public function get(string $path = null, $default = null);
2929
* Obtains multiple items by their paths.
3030
*
3131
* @param iterable $paths
32-
* @param null $default
32+
* @param mixed $default
3333
* @return iterable A list of key => value pairs.
3434
* Paths that do not exist will have $default as value.
3535
*/

0 commit comments

Comments
 (0)