Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PCBC-988: fix type annotation for JsonSerializable implementations #166

Merged
merged 1 commit into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Couchbase/BooleanFieldSearchQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function field(string $field): BooleanFieldSearchQuery
* @internal
* @return mixed
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return BooleanFieldSearchQuery::export($this);
}
Expand Down
2 changes: 1 addition & 1 deletion Couchbase/BooleanSearchQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function min(int $minForShould): BooleanSearchQuery
* @internal
* @return mixed
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return BooleanSearchQuery::export($this);
}
Expand Down
2 changes: 1 addition & 1 deletion Couchbase/ConjunctionSearchQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function childQueries(): array
* @return mixed
* @throws InvalidArgumentException
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return ConjunctionSearchQuery::export($this);
}
Expand Down
2 changes: 1 addition & 1 deletion Couchbase/Coordinate.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __construct(float $longitude, float $latitude)
* @internal
* @return mixed
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return Coordinate::export($this);
}
Expand Down
2 changes: 1 addition & 1 deletion Couchbase/DateRangeSearchFacet.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function addRange(string $name, $start = null, $end = null): DateRangeSea
* @internal
* @return mixed
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return DateRangeSearchFacet::export($this);
}
Expand Down
2 changes: 1 addition & 1 deletion Couchbase/DateRangeSearchQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public function datetimeParser(string $parser): DateRangeSearchQuery
* @internal
* @return mixed
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return DateRangeSearchQuery::export($this);
}
Expand Down
2 changes: 1 addition & 1 deletion Couchbase/DisjunctionSearchQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public function childQueries(): array
* @internal
* @return mixed
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return DisjunctionSearchQuery::export($this);
}
Expand Down
2 changes: 1 addition & 1 deletion Couchbase/GeoBoundingBoxSearchQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function field(string $field): GeoBoundingBoxSearchQuery
* @internal
* @return mixed
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return GeoBoundingBoxSearchQuery::export($this);
}
Expand Down
2 changes: 1 addition & 1 deletion Couchbase/GeoDistanceSearchQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function field(string $field): GeoDistanceSearchQuery
* @internal
* @return mixed
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return GeoDistanceSearchQuery::export($this);
}
Expand Down
2 changes: 1 addition & 1 deletion Couchbase/GeoPolygonQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function field(string $field): GeoPolygonQuery
* @internal
* @return mixed
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return GeoPolygonQuery::export($this);
}
Expand Down
2 changes: 1 addition & 1 deletion Couchbase/MatchAllSearchQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function boost(float $boost): MatchAllSearchQuery
* @internal
* @return mixed
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return MatchAllSearchQuery::export($this);
}
Expand Down
2 changes: 1 addition & 1 deletion Couchbase/MatchNoneSearchQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function boost(float $boost): MatchNoneSearchQuery
* @internal
* @return mixed
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return MatchNoneSearchQuery::export($this);
}
Expand Down
2 changes: 1 addition & 1 deletion Couchbase/MatchPhraseSearchQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function analyzer(string $analyzer): MatchPhraseSearchQuery
* @internal
* @return mixed
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return MatchPhraseSearchQuery::export($this);
}
Expand Down
2 changes: 1 addition & 1 deletion Couchbase/MatchSearchQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function operator(string $operator): MatchSearchQuery
* @internal
* @return mixed
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return MatchSearchQuery::export($this);
}
Expand Down
2 changes: 1 addition & 1 deletion Couchbase/NumericRangeSearchFacet.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function addRange(string $name, float $min = null, float $max = null): Nu
/**
* @throws InvalidArgumentException
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return NumericRangeSearchFacet::export($this);
}
Expand Down
2 changes: 1 addition & 1 deletion Couchbase/NumericRangeSearchQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function max(float $max, bool $inclusive = false): NumericRangeSearchQuer
* @internal
* @return mixed
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return NumericRangeSearchQuery::export($this);
}
Expand Down
2 changes: 1 addition & 1 deletion Couchbase/PhraseSearchQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function field(string $field): PhraseSearchQuery
* @internal
* @return mixed
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return PhraseSearchQuery::export($this);
}
Expand Down
2 changes: 1 addition & 1 deletion Couchbase/PrefixSearchQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function field(string $field): PrefixSearchQuery
* @internal
* @return mixed
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return PrefixSearchQuery::export($this);
}
Expand Down
2 changes: 1 addition & 1 deletion Couchbase/QueryStringSearchQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function boost(float $boost): QueryStringSearchQuery
* @internal
* @return mixed
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return QueryStringSearchQuery::export($this);
}
Expand Down
2 changes: 1 addition & 1 deletion Couchbase/SearchOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ public function includeLocations(bool $enabled): SearchOptions
* @return mixed
* @internal
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return SearchOptions::export($this);
}
Expand Down
2 changes: 1 addition & 1 deletion Couchbase/SearchSortField.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function missing(string $missing): SearchSortField
* @internal
* @return mixed
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return SearchSortField::export($this);
}
Expand Down
2 changes: 1 addition & 1 deletion Couchbase/SearchSortGeoDistance.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function unit(string $unit): SearchSortGeoDistance
* @internal
* @return mixed
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return SearchSortGeoDistance::export($this);
}
Expand Down
2 changes: 1 addition & 1 deletion Couchbase/SearchSortId.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function descending(bool $descending): SearchSortId
* @internal
* @return mixed
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return SearchSortId::export($this);
}
Expand Down
2 changes: 1 addition & 1 deletion Couchbase/SearchSortScore.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function descending(bool $descending): SearchSortScore
* @internal
* @return mixed
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return SearchSortScore::export($this);
}
Expand Down
2 changes: 1 addition & 1 deletion Couchbase/TermRangeSearchQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function max(string $max, bool $inclusive = false): TermRangeSearchQuery
* @internal
* @return mixed
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return TermRangeSearchQuery::export($this);
}
Expand Down
2 changes: 1 addition & 1 deletion Couchbase/TermSearchFacet.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __construct(string $field, int $limit)
* @internal
* @return mixed
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return TermSearchFacet::export($this);
}
Expand Down
2 changes: 1 addition & 1 deletion Couchbase/TermSearchQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function fuzziness(int $fuzziness): TermSearchQuery
* @internal
* @return mixed
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return TermSearchQuery::export($this);
}
Expand Down
2 changes: 1 addition & 1 deletion Couchbase/WildcardSearchQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function field(string $field): WildcardSearchQuery
* @internal
* @return mixed
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return WildcardSearchQuery::export($this);
}
Expand Down
Loading