Skip to content

Commit

Permalink
Fixed issue with defaults not being set and causing errors on the ret…
Browse files Browse the repository at this point in the history
…urn type
  • Loading branch information
mfrankruijter committed Nov 22, 2020
1 parent 7d82321 commit ef79a72
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 2.0.1 - 2020-11-22
### Fixed
- Issue with unset defaults, which caused errors on the return type.

## 2.0.0 - 2020-11-14
### Added
- IS_NULL, NOT_NULL and NOT_LIKE comparators to enum.
Expand All @@ -18,5 +22,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Initial implementation of the package.

- [2.0.0 > Unreleased](https://github.com/grizz-it/search/compare/2.0.0...HEAD)
- [2.0.1 > Unreleased](https://github.com/grizz-it/search/compare/2.0.1...HEAD)
- [2.0.0 > 2.0.1](https://github.com/grizz-it/search/compare/2.0.0...2.0.1)
- [1.0.0 > 2.0.0](https://github.com/grizz-it/search/compare/1.0.0...2.0.0)
2 changes: 1 addition & 1 deletion src/Component/Criteria/FilterGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
class FilterGroup implements FilterGroupInterface
{
/** @var FilterInterface[]|FilterGroupInterface[] */
private $filters;
private $filters = [];

/** @var OperatorEnum */
private $operator;
Expand Down
2 changes: 1 addition & 1 deletion src/Component/Criteria/Limiter.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class Limiter implements LimiterInterface
{
/** @var array */
private $fields;
private $fields = [];

/**
* Constructor
Expand Down
8 changes: 4 additions & 4 deletions src/Component/Criteria/SearchCriteria.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
class SearchCriteria implements SearchCriteriaInterface
{
/** @var FilterGroupInterface[] */
private $filterGroups;
private $filterGroups = [];

/** @var LimiterInterface[] */
private $limiters;
private $limiters = [];

/** @var PagerInterface[] */
private $pagers;
private $pagers = [];

/** @var SorterInterface[] */
private $sorters;
private $sorters = [];

/**
* Adds a filter group to the criteria.
Expand Down

0 comments on commit ef79a72

Please sign in to comment.