PHP 8.0 deprecated syntax warnings for h5p-editor

Created on 24 January 2022, almost 3 years ago
Updated 9 February 2024, 9 months ago

PHP Version: 8.0

Module throws the following warnings:

PHP Deprecated:  Required parameter $defaultLanguage follows optional parameter $prefix in /var/www/html/vendor/h5p/h5p-editor/h5peditor.class.php on line 376

Deprecated: Required parameter $defaultLanguage follows optional parameter $prefix in /var/www/html/vendor/h5p/h5p-editor/h5peditor.class.php on line 376

I checked the codebase of h5p-editor and this issue was already had a merged pull request:https://github.com/h5p/h5p-editor-php-library/pull/128, but it seems that the update to be compatible with PHP 8.0 was not yet included to version 1.24.4.

The patch I uploaded here was the update created in the main git repository of h5p-editor-php-library. So this patch will also the same update for the h5p-editor.

Proposed resolution

Create a patch to update h5p-editor to be PHP 8.0 compatible

🐛 Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

🇵🇭Philippines Johnzel Tuddao

Live updates comments and jobs are added and updated live.
  • PHP 8.0

    The issue particularly affects sites running on PHP version 8.0.0 or later.

  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024