Skip to content

Commit

Permalink
Don’t pass null value to search method.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstein committed Sep 13, 2024
1 parent e06cfa9 commit 03ecef9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.0.2] - 2024-09-13

### Fixed

- Default empty argument to search `''` rather than `null`.

## [0.0.1] - 2024-09-12

### Added
Expand Down
2 changes: 1 addition & 1 deletion search.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
]);

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

foreach ($results as $result) {
$workflow->item()
Expand Down

0 comments on commit 03ecef9

Please sign in to comment.