diff --git a/src/Datagrid/ProxyQuery.php b/src/Datagrid/ProxyQuery.php
index <HASH>..<HASH> 100644
--- a/src/Datagrid/ProxyQuery.php
+++ b/src/Datagrid/ProxyQuery.php
@@ -192,7 +192,7 @@ class ProxyQuery implements ProxyQueryInterface
     public function execute(array $params = [], $hydrationMode = null)
     {
         // NEXT_MAJOR: Remove this check and update method signature to `execute()`.
-        if ([] !== $params || null !== $hydrationMode) {
+        if (\func_num_args() > 0) {
             @trigger_error(sprintf(
                 'Passing arguments to "%s()" is deprecated since sonata-project/doctrine-orm-admin-bundle 3.x.',
                 __METHOD__,
Deprecate passing arguments to `ProxyQuery::execute()`, regardless its values