- Issue created by @recrit
- Merge request !233Issue #3469997 by recrit: Use of dynamic properties is deprecated in PHP 8.2+ β (Open) created by recrit
- Status changed to Needs review
6 months ago 8:12pm 23 August 2024 - πΊπΈUnited States recrit
MR 233 created. Attached is a static patch for composer builds.
- Status changed to Needs work
27 days ago 6:20pm 27 January 2025 - π¨π¦Canada joseph.olstad
TESTS are failing above, this needs to be fixed, the changes made maybe were incorrect.
There's other phpstan fixes needed also.
------ -------------------------------------------------------------------------- Line modules/facets_summary/src/Processor/ProcessorPluginBase.php ------ -------------------------------------------------------------------------- 98 Call to an undefined method Drupal\facets_summary\Processor\ProcessorPluginBase::addDependency(). <code> Line src/Plugin/facets/facet_source/SearchApiBaseFacetSource.php ------ ---------------------------------------------------------------------- 82 Access to deprecated property $index of class Drupal\facets\Plugin\facets\facet_source\SearchApiBaseFacetSource: in facets:8.x-1.5 and is removed from facets:8.x-2.0. Classes extending SearchApiBaseFacetSource should implement ::getIndex() instead.
------ ----------------------------------------------------------------------- Line src/Plugin/facets/processor/ListItemProcessor.php ------ ----------------------------------------------------------------------- 156 Function Drupal\facets\Plugin\facets\processor\options_allowed_values invoked with 1 parameter, 0 required. ------ ----------------------------------------------------------------------- ------ ---------------------------------------------------------------- Line src/Plugin/facets/processor/TermWeightWidgetOrderProcessor.php ------ ---------------------------------------------------------------- 88 Variable $a_raw might not be defined.
------ ------------------------------------------------------------ Line src/Plugin/facets/query_type/SearchApiRange.php ------ ------------------------------------------------------------ 28 Variable $query in empty() always exists and is not falsy. ------ ------------------------------------------------------------ ------ ------------------------------------------------------------ Line src/Plugin/facets/query_type/SearchApiString.php ------ ------------------------------------------------------------ 33 Variable $query in empty() always exists and is not falsy. ------ ------------------------------------------------------------
There's also a bunch for the tests, maybe split off all these phpstan fixes into another issue and bring that in as a patch to run the tests for these.
- π¨π¦Canada joseph.olstad
Ah nvm, should look at π In PHP 8.2+, the creation of dynamic properties is deprecated Active instead
- π¨π¦Canada joseph.olstad
Closing this in favour of 3482015
π In PHP 8.2+, the creation of dynamic properties is deprecated Active
Thank you all!