From fb8cfeff36c298c723dc9810fb7796cc1fb5b41e Mon Sep 17 00:00:00 2001 From: Vincent <407859+vincentchalamon@users.noreply.github.com> Date: Wed, 13 Sep 2023 16:20:51 +0200 Subject: [PATCH] fix(doctrine): fix BC break about final filters (#5815) --- src/Doctrine/Odm/Filter/BooleanFilter.php | 4 +++- src/Doctrine/Odm/Filter/DateFilter.php | 4 +++- src/Doctrine/Odm/Filter/ExistsFilter.php | 4 +++- src/Doctrine/Odm/Filter/NumericFilter.php | 4 +++- src/Doctrine/Odm/Filter/OrderFilter.php | 4 +++- src/Doctrine/Odm/Filter/RangeFilter.php | 4 +++- src/Doctrine/Odm/Filter/SearchFilter.php | 4 +++- src/Doctrine/Orm/Filter/BooleanFilter.php | 4 +++- src/Doctrine/Orm/Filter/DateFilter.php | 4 +++- src/Doctrine/Orm/Filter/ExistsFilter.php | 4 +++- src/Doctrine/Orm/Filter/NumericFilter.php | 4 +++- src/Doctrine/Orm/Filter/OrderFilter.php | 4 +++- src/Doctrine/Orm/Filter/RangeFilter.php | 4 +++- src/Doctrine/Orm/Filter/SearchFilter.php | 4 +++- 14 files changed, 42 insertions(+), 14 deletions(-) diff --git a/src/Doctrine/Odm/Filter/BooleanFilter.php b/src/Doctrine/Odm/Filter/BooleanFilter.php index b38dc6fe40e..c267d5f35ab 100644 --- a/src/Doctrine/Odm/Filter/BooleanFilter.php +++ b/src/Doctrine/Odm/Filter/BooleanFilter.php @@ -30,8 +30,10 @@ * @author Amrouche Hamza * @author Teoh Han Hui * @author Alan Poulain + * + * @final */ -final class BooleanFilter extends AbstractFilter +class BooleanFilter extends AbstractFilter { use BooleanFilterTrait; diff --git a/src/Doctrine/Odm/Filter/DateFilter.php b/src/Doctrine/Odm/Filter/DateFilter.php index 79e16a1c463..736ccad5bdd 100644 --- a/src/Doctrine/Odm/Filter/DateFilter.php +++ b/src/Doctrine/Odm/Filter/DateFilter.php @@ -26,8 +26,10 @@ * @author Kévin Dunglas * @author Théo FIDRY * @author Alan Poulain + * + * @final */ -final class DateFilter extends AbstractFilter implements DateFilterInterface +class DateFilter extends AbstractFilter implements DateFilterInterface { use DateFilterTrait; diff --git a/src/Doctrine/Odm/Filter/ExistsFilter.php b/src/Doctrine/Odm/Filter/ExistsFilter.php index 3d13ccaaa29..3d2d11bd2ff 100644 --- a/src/Doctrine/Odm/Filter/ExistsFilter.php +++ b/src/Doctrine/Odm/Filter/ExistsFilter.php @@ -34,8 +34,10 @@ * * @author Teoh Han Hui * @author Alan Poulain + * + * @final */ -final class ExistsFilter extends AbstractFilter implements ExistsFilterInterface +class ExistsFilter extends AbstractFilter implements ExistsFilterInterface { use ExistsFilterTrait; diff --git a/src/Doctrine/Odm/Filter/NumericFilter.php b/src/Doctrine/Odm/Filter/NumericFilter.php index 3e73f01a3c1..a55c58db5aa 100644 --- a/src/Doctrine/Odm/Filter/NumericFilter.php +++ b/src/Doctrine/Odm/Filter/NumericFilter.php @@ -29,8 +29,10 @@ * @author Amrouche Hamza * @author Teoh Han Hui * @author Alan Poulain + * + * @final */ -final class NumericFilter extends AbstractFilter +class NumericFilter extends AbstractFilter { use NumericFilterTrait; diff --git a/src/Doctrine/Odm/Filter/OrderFilter.php b/src/Doctrine/Odm/Filter/OrderFilter.php index 10d0cd447e6..a96523e7808 100644 --- a/src/Doctrine/Odm/Filter/OrderFilter.php +++ b/src/Doctrine/Odm/Filter/OrderFilter.php @@ -34,8 +34,10 @@ * @author Kévin Dunglas * @author Théo FIDRY * @author Alan Poulain + * + * @final */ -final class OrderFilter extends AbstractFilter implements OrderFilterInterface +class OrderFilter extends AbstractFilter implements OrderFilterInterface { use OrderFilterTrait; diff --git a/src/Doctrine/Odm/Filter/RangeFilter.php b/src/Doctrine/Odm/Filter/RangeFilter.php index 8e2ab09838c..01f01233dd2 100644 --- a/src/Doctrine/Odm/Filter/RangeFilter.php +++ b/src/Doctrine/Odm/Filter/RangeFilter.php @@ -23,8 +23,10 @@ * * @author Lee Siong Chan * @author Alan Poulain + * + * @final */ -final class RangeFilter extends AbstractFilter implements RangeFilterInterface +class RangeFilter extends AbstractFilter implements RangeFilterInterface { use RangeFilterTrait; diff --git a/src/Doctrine/Odm/Filter/SearchFilter.php b/src/Doctrine/Odm/Filter/SearchFilter.php index f5c1ee8fde4..fd77bb84208 100644 --- a/src/Doctrine/Odm/Filter/SearchFilter.php +++ b/src/Doctrine/Odm/Filter/SearchFilter.php @@ -34,8 +34,10 @@ * * @author Kévin Dunglas * @author Alan Poulain + * + * @final */ -final class SearchFilter extends AbstractFilter implements SearchFilterInterface +class SearchFilter extends AbstractFilter implements SearchFilterInterface { use SearchFilterTrait; diff --git a/src/Doctrine/Orm/Filter/BooleanFilter.php b/src/Doctrine/Orm/Filter/BooleanFilter.php index b0db432d94a..3d23fd642c1 100644 --- a/src/Doctrine/Orm/Filter/BooleanFilter.php +++ b/src/Doctrine/Orm/Filter/BooleanFilter.php @@ -31,8 +31,10 @@ * * @author Amrouche Hamza * @author Teoh Han Hui + * + * @final */ -final class BooleanFilter extends AbstractFilter +class BooleanFilter extends AbstractFilter { use BooleanFilterTrait; diff --git a/src/Doctrine/Orm/Filter/DateFilter.php b/src/Doctrine/Orm/Filter/DateFilter.php index 34c4b39359f..4dc5de4bafd 100644 --- a/src/Doctrine/Orm/Filter/DateFilter.php +++ b/src/Doctrine/Orm/Filter/DateFilter.php @@ -28,8 +28,10 @@ * * @author Kévin Dunglas * @author Théo FIDRY + * + * @final */ -final class DateFilter extends AbstractFilter implements DateFilterInterface +class DateFilter extends AbstractFilter implements DateFilterInterface { use DateFilterTrait; diff --git a/src/Doctrine/Orm/Filter/ExistsFilter.php b/src/Doctrine/Orm/Filter/ExistsFilter.php index 265878470ec..49b029edd44 100644 --- a/src/Doctrine/Orm/Filter/ExistsFilter.php +++ b/src/Doctrine/Orm/Filter/ExistsFilter.php @@ -36,8 +36,10 @@ * Interpretation: filter products which have a brand * * @author Teoh Han Hui + * + * @final */ -final class ExistsFilter extends AbstractFilter implements ExistsFilterInterface +class ExistsFilter extends AbstractFilter implements ExistsFilterInterface { use ExistsFilterTrait; diff --git a/src/Doctrine/Orm/Filter/NumericFilter.php b/src/Doctrine/Orm/Filter/NumericFilter.php index 39062af8669..d1b751aac56 100644 --- a/src/Doctrine/Orm/Filter/NumericFilter.php +++ b/src/Doctrine/Orm/Filter/NumericFilter.php @@ -30,8 +30,10 @@ * * @author Amrouche Hamza * @author Teoh Han Hui + * + * @final */ -final class NumericFilter extends AbstractFilter +class NumericFilter extends AbstractFilter { use NumericFilterTrait; diff --git a/src/Doctrine/Orm/Filter/OrderFilter.php b/src/Doctrine/Orm/Filter/OrderFilter.php index c34a9db0782..bce9766ad6b 100644 --- a/src/Doctrine/Orm/Filter/OrderFilter.php +++ b/src/Doctrine/Orm/Filter/OrderFilter.php @@ -35,8 +35,10 @@ * * @author Kévin Dunglas * @author Théo FIDRY + * + * @final */ -final class OrderFilter extends AbstractFilter implements OrderFilterInterface +class OrderFilter extends AbstractFilter implements OrderFilterInterface { use OrderFilterTrait; diff --git a/src/Doctrine/Orm/Filter/RangeFilter.php b/src/Doctrine/Orm/Filter/RangeFilter.php index dbd64c0a365..0a8dab30adf 100644 --- a/src/Doctrine/Orm/Filter/RangeFilter.php +++ b/src/Doctrine/Orm/Filter/RangeFilter.php @@ -24,8 +24,10 @@ * Filters the collection by range. * * @author Lee Siong Chan + * + * @final */ -final class RangeFilter extends AbstractFilter implements RangeFilterInterface +class RangeFilter extends AbstractFilter implements RangeFilterInterface { use RangeFilterTrait; diff --git a/src/Doctrine/Orm/Filter/SearchFilter.php b/src/Doctrine/Orm/Filter/SearchFilter.php index aa9da18ad33..82e2639e9c7 100644 --- a/src/Doctrine/Orm/Filter/SearchFilter.php +++ b/src/Doctrine/Orm/Filter/SearchFilter.php @@ -33,8 +33,10 @@ * Filter the collection by given properties. * * @author Kévin Dunglas + * + * @final */ -final class SearchFilter extends AbstractFilter implements SearchFilterInterface +class SearchFilter extends AbstractFilter implements SearchFilterInterface { use SearchFilterTrait;