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 the string type-hint by @franmomu #2082
    • ⚡️ Changed Settings::setMergePolicy signature to allow to pass int and string as argument 2, if you are overriding this method you must update the signature removing the string 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 for data in Request by @franmomu #2078
    • ➕ Added missing throws PHPDoc tags by @franmomu #2077
    • ➕ Added Search::addIndexByName(), Search::hasIndexByName() and Search::addIndicesByName() by @franmomu #2103 ### 🔄 Changed
    • ⚡️ Updated symfony/phpunit-bridge to 6.0 by @franmomu #2067
    • ⚡️ Updated php-cs-fixer to 3.8.0 #2074
    • ⚡️ Updated composer-normalize to 2.2.28 by @deguif #2084
    • Increased PHPStan level to 4 #2080
    • ExceptionInterface extends Throwable #2083
    • 🔄 Changed value in SetProcessor to accept mixed instead of string 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 to Search::addIndex() and Search::hasIndex(), pass an Index instance instead by @franmomu #2103
    • 🗄 Deprecated passing an array of string as 1st argument to Search::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() and Connection::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 allowing Document by @franmomu #2091
    • 🛠 Fixed Term::setTerm() PHPDoc allowing scalar values for $value parameter by @franmomu #2094
    • Fixed DateHistogram deprecation: use fixed_internal or calendar_interval instead of interval by @VincentLanglet #2099