Skip to content

Commit f81db5c

Browse files
authored
Add return type (#8)
Add array type to suppress error at sample code.
1 parent 8c3736e commit f81db5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class MyFilter extends RangeInputFilter {
3030
// $value will always be [ "from" => ?, "to" => ? ]
3131
}
3232

33-
public function options(Request $request)
33+
public function options(Request $request) : array
3434
{
3535
return [
3636
'fromPlaceholder' => 0,
@@ -59,4 +59,4 @@ class ExampleNovaResource extends Resource {
5959

6060
## License
6161

62-
The MIT License (MIT). Please see [License File](https://raw.githubusercontent.com/dcasia/nova-range-input-filter/master/LICENSE) for more information.
62+
The MIT License (MIT). Please see [License File](https://raw.githubusercontent.com/dcasia/nova-range-input-filter/master/LICENSE) for more information.

0 commit comments

Comments
 (0)