Skip to content

Commit 9545b91

Browse files
committed
fix #2153 deprecate AbstractFilter::addJoinsForNestedProperty not giving the 6th argument
1 parent b15030b commit 9545b91

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Bridge/Doctrine/Orm/Filter/AbstractFilter.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,12 @@ protected function addJoinsForNestedProperty(string $property, string $rootAlias
286286
if (\func_num_args() > 5) {
287287
$joinType = func_get_arg(5);
288288
} else {
289+
if (__CLASS__ !== \get_class($this)) {
290+
$r = new \ReflectionMethod($this, __FUNCTION__);
291+
if (__CLASS__ !== $r->getDeclaringClass()->getName()) {
292+
@trigger_error(sprintf('Method %s() will have a sixth `$joinType` argument in version API Platform 3.0. Not defining it is deprecated since API Platform 2.3.', __FUNCTION__), E_USER_DEPRECATED);
293+
}
294+
}
289295
$joinType = null;
290296
}
291297

0 commit comments

Comments
 (0)