Problem/Motivation

After upgradin to PHP 8.5, a warning pops up "Deprecated function: Using null as an array offset is deprecated, use an empty string instead"

Proposed resolution

Use an empty string instead :-)

Issue fork gutenberg-3591500

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

gease created an issue. See original summary.

gease changed the visibility of the branch 3591500-using-null-as to hidden.

gease’s picture

Version: 4.0.x-dev » 3.0.x-dev
Status: Active » Needs review
gease’s picture

Title: Using null as an array offset is deprecated (PHP 8.5 compatibility) » [PHP 8.5] Using null as an array offset is deprecated.
vmario’s picture

adjust "/web/modules/contrib/gutenberg/src/BlockProcessor# vim DynamicRenderProcessor.php" to

105   /**
106    * {@inheritdoc}
107    */
108   public function isSupported(array $block, $block_content = '') {
109     return isset($this->getDynamicBlockNames()[$block['blockName'] ?? '']);
110   }

makes it work properly

marcofernandes made their first commit to this issue’s fork.