Problem/Motivation

PHP deprecation notice:

Exception: Deprecated function: Creation of dynamic property Drupal\facets\Result\Result::$transliterateDisplayValue is deprecated
Drupal\facets\Plugin\facets\processor\DisplayValueWidgetOrderProcessor->sortResults()() (Line: 72)

Issue fork facets-3360426

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

Rajeshreeputra created an issue. See original summary.

rajeshreeputra’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)
rajeshreeputra’s picture

Issue summary: View changes
Status: Closed (works as designed) » Active
ankitv18’s picture

Assigned: Unassigned » ankitv18

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

benabaird’s picture

I've created a branch that addresses all dynamic property issues on PHP 8.2 for the 3.0 branch in a more robust manner. Instead of adding the missing property to the Result class I've added a generic storage property that can be accessed through get/set methods. This fixes the display value order processor, as well as opens up the ability for other custom processors to save arbitrary data on the result.

benabaird’s picture

Sorry for the spam. Fixed the failing sort test. The tests that don't pass are not related to these changes.

benabaird’s picture

Status: Active » Needs review
mvonfrie’s picture

For me MR 143 works.

heddn’s picture

heddn’s picture

I can't RTBC this because I made the last changes. But for the bits I didn't work on, I can give a whole hearted +1. The number of test failures are also the same on HEAD, so I think this is ready. LGTM.

jorisclaes’s picture

I found some deprications:

Deprecated function: Creation of dynamic property

see the patch for inspiration

heddn’s picture

Status: Needs review » Needs work

#14 needs to incorporated into the MR please.

Liam Morland made their first commit to this issue’s fork.

liam morland’s picture

Status: Needs work » Needs review

I have added #14 to the merge request.

It would be helpful to add a PHP 8.2 automated testing configuration.

This merge request is changing a lot more than is needed to fix the "Creation of dynamic property" message. To just fix that, all that is needed is the fix in #3336646: PHP 8.2 compatibility for the 2.0.x branch.

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

mkalkbrenner’s picture

Status: Needs review » Fixed
liam morland’s picture

Nothing has been merged.

mkalkbrenner’s picture

Obviously the "merge train" didn't work. I merged manually now,

carolpettirossi’s picture

StatusFileSize
new7.34 KB

Here's a patch for the version 2.x of facets.
In our case, we can't upgrade to 3.x as we are using the facets_form module that is locked on 2.x

Status: Fixed » Closed (fixed)

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

herved’s picture

StatusFileSize
new8.85 KB

Static patch from MR 143, if anyone else needs it.

PS: Is there a plan for a 3.x-beta2 release yet?

marios anagnostopoulos’s picture

Sorry for posting after this was closed.

Has this not been merged to 2.x, Or am I doing something wrong?

liam morland’s picture

This was merged only in to branch 3.0.x. The 2.0.x branch was fixed in #3336646: PHP 8.2 compatibility for the 2.0.x branch; this fixed shipped in version 2.0.7.

ethomas08’s picture

Re-rolled patch for 3.0.0-beta1 release because my team cannot use the more recent releases due to breaking changes.

nick hope’s picture

marios anagnostopoulos’s picture

StatusFileSize
new7.41 KB

For everyone using 2.0.7

ankitv18’s picture

Assigned: ankitv18 » Unassigned