Elastica v7.2.0 Release Notes
-
Backward Compatibility Breaks
- ⚡️ Changed
SetProcessor::setValue
signature to allow to pass any type, if you are overriding this method you must update the signature removing thestring
type-hint by @franmomu #2082 - ⚡️ Changed
Settings::setMergePolicy
signature to allow to passint
andstring
as argument 2, if you are overriding this method you must update the signature removing thestring
type-hint by @franmomu #2085 ### ➕ Added - ➕ Added
PHPStan
at level 3 by @franmomu #2064 - ➕ Added coverage check to CI by @franmomu #2071
- ➕ Added
string
as a valid type fordata
inRequest
by @franmomu #2078 - ➕ Added missing
throws
PHPDoc tags by @franmomu #2077 - ➕ Added
Search::addIndexByName()
,Search::hasIndexByName()
andSearch::addIndicesByName()
by @franmomu #2103 ### 🔄 Changed - ⚡️ Updated
symfony/phpunit-bridge
to6.0
by @franmomu #2067 - ⚡️ Updated
php-cs-fixer
to3.8.0
#2074 - ⚡️ Updated
composer-normalize
to2.2.28
by @deguif #2084 - Increased
PHPStan
level to4
#2080 ExceptionInterface
extendsThrowable
#2083- 🔄 Changed
value
inSetProcessor
to acceptmixed
instead ofstring
by @franmomu #2082 - ⚡️ Updated
Query::create
PHPDoc to include supported types and propagate it to callers by @franmomu #2088 - ⚡️ Update some iterable types in PHPDoc to be more specific by @franmomu #2092
- ⚡️ Updated
AwsAuthV4Test
adding assertions for exception type by @franmomu #2094 ### 🗄 Deprecated - Deprecated
Elastica\Reindex::WAIT_FOR_COMPLETION_FALSE
, use a boolean as parameter instead by @franmomu #2070 - Passing anything else than a boolean as 1st argument to
Reindex::setWaitForCompletion
, pass a boolean instead by @franmomu #2070 - 🗄 Deprecated passing a
string
as 1st argument toSearch::addIndex()
andSearch::hasIndex()
, pass an Index instance instead by @franmomu #2103 - 🗄 Deprecated passing an array of
string
as 1st argument toSearch::addIndices()
, use an array of Index instances by @franmomu #2103
✂ Removed
- ✂ Removed
egeloen/http-adapter
as suggested package since the project is abandoned by @franmomu #2069 - ✂ Removed
0
as valid request data using Analyze API by @franmomu #2068 - ✂ Removed dead code in
AwsAuthV4Test
by @franmomu #2073 ### 🛠 Fixed - 🛠 Fixed some PHPDoc types adding
null
as possible value by @franmomu #2070 and #2087 - 🛠 Fixed passing wrong types to
GapPolicyInterface::setGapPolicy()
,Document::setDocAsUpsert()
andConnection::setPort()
methods by @franmomu #2081 - 🛠 Fixed
Http
PHPDoc adding\CurlHandle
type for Curl connection by @franmomu #2086 - 🛠 Fixed case mismatch in method calls by @franmomu #2087
- 🛠 Fixed
MoreLikeThis::setLike()
PHPDoc allowingDocument
by @franmomu #2091 - 🛠 Fixed
Term::setTerm()
PHPDoc allowing scalar values for$value
parameter by @franmomu #2094 - Fixed
DateHistogram
deprecation: usefixed_internal
orcalendar_interval
instead ofinterval
by @VincentLanglet #2099
- ⚡️ Changed