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
Issue fork ui_patterns-3571740
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
Comment #4
liam morlandComment #5
mogtofu33 commentedThis is related to PHP 8.5, thanks for the patch, working fine.
Comment #7
just_like_good_vibes