Problem/Motivation

  • Deprecated function: Creation of dynamic property Drupal\acquia_search\PreferredCoreService::$subscription is deprecated
  • Deprecated function: Creation of dynamic property Drupal\acquia_search\PreferredCoreService::$acquiaSearchApiClient is deprecated

Steps to reproduce

We have integrated test case with acquia_search, while running the test I've found these deprecation with PHP 8.2 with Drupal 10.0.7 version

Proposed resolution

Implement proper property initialisation in the class before assigning any value further in the class.

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

ankitv18 created an issue. See original summary.

ankitv18’s picture

Issue summary: View changes

ankitv18’s picture

Assigned: ankitv18 » Unassigned
Status: Active » Needs review

Can anyone review MR!22 and move ahead??

liam morland’s picture

Issue tags: -PHP 8.2 Deprecation +PHP 8.2

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

mglaman’s picture

Status: Needs review » Reviewed & tested by the community

Waiting for rebase runs then merging, thanks @ankitv18

  • mglaman committed 6501218f on 3.1.x authored by ankitv18
    Issue #3350780 by ankitv18, mglaman: Dynamic property creation - PHP 8.2...
mglaman’s picture

Status: Reviewed & tested by the community » Fixed

Merged, thanks!

Status: Fixed » Closed (fixed)

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