Make Drupal 7 Openlayers v2 compatible with PHP 8.2

Created on 9 May 2024, 4 months ago

Problem/Motivation

There are several deprecation messages after switch to PHP 8.2, f.ex:

Deprecated function: Creation of dynamic property openlayers_layer_type_xyz::$weight is deprecated funktiossa _openlayers_layers_process() (rivi 29 tiedostossa /app/web/sites/all/modules/contrib/openlayers/includes/openlayers.render.inc).

Let's just avoid these by allowing dynamic properties via #[\AllowDynamicProperties] .

🐛 Bug report
Status

Needs review

Version

2.0

Component

OL API

Created by

🇪🇪Estonia tormi Tallinn

Live updates comments and jobs are added and updated live.
  • PHP 8.2

    The issue particularly affects sites running on PHP version 8.2.0 or later.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024