PHP 8.1 compatibility.

Steps for review:

  • visit page with AF
  • apply few filters
  • make sure in watchdog there are no messages related to the deprecations

Merge request reports