Skip to content

Commit

Permalink
Allow persistence bundle to avoid deprecation (#6747)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet authored Jan 6, 2021
1 parent 5f66180 commit 6b43d89
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Datagrid/Pager.php
Original file line number Diff line number Diff line change
Expand Up @@ -589,10 +589,12 @@ public function isLastPage()
*/
public function getParameters()
{
@trigger_error(sprintf(
'The method "%s()" is deprecated since sonata-project/admin-bundle 3.84 and will be removed in 4.0.',
__METHOD__
), E_USER_DEPRECATED);
if ('sonata_deprecation_mute' !== (\func_get_args()[0] ?? null)) {
@trigger_error(sprintf(
'The method "%s()" is deprecated since sonata-project/admin-bundle 3.84 and will be removed in 4.0.',
__METHOD__
), E_USER_DEPRECATED);
}

return $this->parameters;
}
Expand Down

0 comments on commit 6b43d89

Please sign in to comment.