Skip to content
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 2.7.0

* **BC**: Change `api_platform.listener.request.add_format` priority from 7 to 28 to execute it before firewall (priority 8) (#3599)
* **BC**: Use `@final` annotation in ORM filters (#4109)
* Doctrine: Better exception to find which resource is linked to an exception (#3965)
* Doctrine: Allow mixed type value for date filter (notice if invalid) (#3870)
* Doctrine: Add `nulls_always_first` and `nulls_always_last` to `nulls_comparison` in order filter (#4103)
Expand Down
2 changes: 2 additions & 0 deletions src/Bridge/Doctrine/Orm/Filter/BooleanFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
*
* @author Amrouche Hamza <hamza.simperfit@gmail.com>
* @author Teoh Han Hui <teohhanhui@gmail.com>
*
* @final
*/
class BooleanFilter extends AbstractContextAwareFilter
{
Expand Down
2 changes: 2 additions & 0 deletions src/Bridge/Doctrine/Orm/Filter/DateFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
*
* @author Kévin Dunglas <dunglas@gmail.com>
* @author Théo FIDRY <theo.fidry@gmail.com>
*
* @final
*/
class DateFilter extends AbstractContextAwareFilter implements DateFilterInterface
{
Expand Down
4 changes: 3 additions & 1 deletion src/Bridge/Doctrine/Orm/Filter/ExistsFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
* Interpretation: filter products which have a brand
*
* @author Teoh Han Hui <teohhanhui@gmail.com>
*
* @final
*/
class ExistsFilter extends AbstractContextAwareFilter implements ExistsFilterInterface
{
Expand Down Expand Up @@ -74,7 +76,7 @@ protected function filterProperty(string $property, $value, QueryBuilder $queryB
if (\func_num_args() > 6) {
$context = func_get_arg(6);
} else {
if (__CLASS__ !== static::class) {
if (__CLASS__ !== static::class) { /** @phpstan-ignore-line The class was not final before */
$r = new \ReflectionMethod($this, __FUNCTION__);
if (__CLASS__ !== $r->getDeclaringClass()->getName()) {
@trigger_error(sprintf('Method %s() will have a seventh `$context` argument in version API Platform 3.0. Not defining it is deprecated since API Platform 2.5.', __FUNCTION__), \E_USER_DEPRECATED);
Expand Down
2 changes: 2 additions & 0 deletions src/Bridge/Doctrine/Orm/Filter/NumericFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
*
* @author Amrouche Hamza <hamza.simperfit@gmail.com>
* @author Teoh Han Hui <teohhanhui@gmail.com>
*
* @final
*/
class NumericFilter extends AbstractContextAwareFilter
{
Expand Down
2 changes: 2 additions & 0 deletions src/Bridge/Doctrine/Orm/Filter/OrderFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
*
* @author Kévin Dunglas <dunglas@gmail.com>
* @author Théo FIDRY <theo.fidry@gmail.com>
*
* @final
*/
class OrderFilter extends AbstractContextAwareFilter implements OrderFilterInterface
{
Expand Down
2 changes: 2 additions & 0 deletions src/Bridge/Doctrine/Orm/Filter/RangeFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
* Filters the collection by range.
*
* @author Lee Siong Chan <ahlee2326@me.com>
*
* @final
*/
class RangeFilter extends AbstractContextAwareFilter implements RangeFilterInterface
{
Expand Down
2 changes: 2 additions & 0 deletions src/Bridge/Doctrine/Orm/Filter/SearchFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
* Filter the collection by given properties.
*
* @author Kévin Dunglas <dunglas@gmail.com>
*
* @final
*/
class SearchFilter extends AbstractContextAwareFilter implements SearchFilterInterface
{
Expand Down