Skip to content

Commit 03ecef9

Browse files
committed
Don’t pass null value to search method.
1 parent e06cfa9 commit 03ecef9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.0.2] - 2024-09-13
11+
12+
### Fixed
13+
14+
- Default empty argument to search `''` rather than `null`.
15+
1016
## [0.0.1] - 2024-09-12
1117

1218
### Added

search.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
]);
4848

4949
// Rock and roll
50-
$results = $fuse->search($workflow->argument());
50+
$results = $fuse->search($workflow->argument() ?? '');
5151

5252
foreach ($results as $result) {
5353
$workflow->item()

0 commit comments

Comments
 (0)