PHP 8.1 Conflict (H5P WordPress Plugin)

The H5P WordPress plugin seems to conflict with PHP 8.1 and causes a fatal error when viewing rendered modules due to an array being passed to the property_exists() function.

Detailed steps to reproduce the bug:

  • Install H5P WordPress plugin (v1.15.6) on a WP site running PHP 8.1
  • Attempt to preview any H5P content by clicking the title of a module on the wp-admin page H5P > All H5P Content

Platform and version number:
WordPress 6.1.1

H5P plugin version: