Problem/Motivation

BUEditor is throwing "Implicitly marking parameter {param} as nullable" deprecation warnings on PHP 8.4.

Steps to reproduce

Edit a node with BUEditor enabled at PHP 8.4:

  • Deprecated: Drupal\bueditor\Plugin\Editor\BUEditor::getBueditorEditor(): Implicitly marking parameter $account as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/bueditor/src/Plugin/Editor/BUEditor.php on line 120
  • Deprecated: Drupal\bueditor\Entity\BUEditorEditor::getLibraries(): Implicitly marking parameter $editor as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/bueditor/src/Entity/BUEditorEditor.php on line 114
  • Deprecated: Drupal\bueditor\Entity\BUEditorEditor::getJsSettings(): Implicitly marking parameter $editor as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/bueditor/src/Entity/BUEditorEditor.php on line 122
  • Deprecated: Drupal\bueditor\Entity\BUEditorEditor::getJs(): Implicitly marking parameter $editor as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/bueditor/src/Entity/BUEditorEditor.php on line 130
  • Deprecated: Drupal\bueditor\BUEditorPluginManager::alterEditorJs(): Implicitly marking parameter $editor as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/bueditor/src/BUEditorPluginManager.php on line 160
  • Deprecated: Drupal\bueditor\BUEditorPluginInterface::alterEditorJs(): Implicitly marking parameter $editor as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/bueditor/src/BUEditorPluginInterface.php on line 37
  • Deprecated: Drupal\bueditor\Plugin\BUEditorPlugin\Core::alterEditorJs(): Implicitly marking parameter $editor as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/bueditor/src/Plugin/BUEditorPlugin/Core.php on line 52
  • Deprecated: Drupal\bueditor\BUEditorPluginBase::alterEditorJs(): Implicitly marking parameter $editor as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/bueditor/src/BUEditorPluginBase.php on line 29
  • Deprecated: Drupal\bueditor\Plugin\BUEditorPlugin\XPreview::alterEditorJs(): Implicitly marking parameter $editor as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/bueditor/src/Plugin/BUEditorPlugin/XPreview.php on line 34
  • Deprecated: Drupal\imce\Plugin\BUEditorPlugin\Imce::alterEditorJS(): Implicitly marking parameter $editor as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/imce/src/Plugin/BUEditorPlugin/Imce.php on line 26

Proposed resolution

Use explicit nullable type in code.

Issue fork bueditor-3586465

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

seogow created an issue. See original summary.

seogow’s picture

Status: Active » Needs review

Merge request created.

ufku’s picture

Version: 3.0.1 » 3.x-dev
Status: Needs review » Fixed

Was fixed in 3.x-dev. Thanks.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.