Deprecated function in PHP8.1: Return types

Created on 25 August 2022, over 2 years ago
Updated 14 March 2023, almost 2 years ago

When clearing caches when running PHP8.1, the following error messages appear:

  • Deprecated function: Return type of OpenlayersDoctrine\Common\Reflection\StaticReflectionClass::getName() should either be compatible with ReflectionClass::getName(): string, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include_once() (line 3567 of C:\wamp64\www\drupal7_ol_dev\includes\bootstrap.inc).
  • Deprecated function: Return type of OpenlayersDoctrine\Common\Reflection\StaticReflectionClass::getDocComment() should either be compatible with ReflectionClass::getDocComment(): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include_once() (line 3567 of C:\wamp64\www\drupal7_ol_dev\includes\bootstrap.inc).
🐛 Bug report
Status

Fixed

Version

3.0

Component

OL API

Created by

🇬🇧United Kingdom ken-g

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024