Problem/Motivation

When creating a new page layout in Display Builder.

Deprecated function: Non-canonical cast (boolean) is deprecated, use the (bool) cast instead in include() (line 576 of /project/vendor/composer/ClassLoader.php).

include() (Line: 576)
{closure:Composer\Autoload\ClassLoader::initializeIncludeClosure():575}() (Line: 427)
Composer\Autoload\ClassLoader->loadClass()
class_exists() (Line: 162)
Drupal\Component\Plugin\Discovery\AttributeClassDiscovery->getDefinitions() (Line: 86)
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDefinitions() (Line: 340)
Drupal\Core\Plugin\DefaultPluginManager->findDefinitions() (Line: 216)
Drupal\Core\Plugin\DefaultPluginManager->getDefinitions() (Line: 25)
Drupal\Core\Plugin\DefaultPluginManager->getDefinition() (Line: 16)
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance() (Line: 85)
Drupal\Component\Plugin\PluginManagerBase->createInstance() (Line: 833)
Drupal\display_builder\Entity\Instance->buildIndexFromSource() (Line: 689)
Drupal\display_builder\Entity\Instance->buildIndexFromSlot() (Line: 176)
Drupal\display_builder\Entity\Instance->postCreate() (Line: 239)
Drupal\Core\Entity\EntityStorageBase->create() (Line: 77)
Drupal\display_builder\InstanceStorage->createFromImplementation() (Line: 252)
Drupal\display_builder_page_layout\Entity\PageLayout->initInstanceIfMissing() (Line: 348)

Steps to reproduce

Drupal Core: main
Display Builder: 1.0.x
UI Patterns: 2.0.x
PHP: 8.5

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

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

grimreaper created an issue. See original summary.

liam morland made their first commit to this issue’s fork.

liam morland’s picture

Status: Active » Needs review
mogtofu33’s picture

Status: Needs review » Reviewed & tested by the community

This is related to PHP 8.5, thanks for the patch, working fine.

just_like_good_vibes’s picture

Status: Reviewed & tested by the community » Fixed

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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.