PHP 8.2 Compatibility

Created on 16 May 2023, over 1 year ago
Updated 6 June 2023, over 1 year ago

Problem/Motivation

While running drupal-check over local with php I've found below warnings:

  Line   src/Plugin/Block/ComponentBlock.php
 ------ --------------------------------------------------------------------------
  45     Access to an undefined property
         Drupal\component\Plugin\Block\ComponentBlock::$uuid.
        
  142    Access to an undefined property
         Drupal\component\Plugin\Block\ComponentBlock::$uuid.
         
  299    Call to an undefined method
         Drupal\Component\Plugin\Context\ContextInterface::getContextData().
  Line   src/ComponentDiscovery.php
 ------ ---------------------------------------------------------------------
  229    Instantiated class Drupal\component\DiscoveryException not found.
         
  246    Variable $parsed_data might not be defined.
 ------ --------------------------------------------------------------------------
  Line   src/Plugin/Derivative/ComponentBlockDeriver.php
 ------ --------------------------------------------------------------------------
  49     Access to an undefined property
         Drupal\component\Plugin\Derivative\ComponentBlockDeriver::$derivatives.
      
  57     Access to an undefined property
         Drupal\component\Plugin\Derivative\ComponentBlockDeriver::$derivatives.
      
 ------ --------------------------------------------

  Line   src/RecursiveComponentFilterIterator.php
 ------ --------------------------------------------------------------------------
  91     Access to an undefined property RecursiveFilterIterator::$blocklist.
       
  93     Call to an undefined method RecursiveFilterIterator::acceptTests().
  107    Call to an undefined method
         Drupal\component\RecursiveComponentFilterIterator::isDir().
📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India ankitv18

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024