Remove "match" expression, so the module is also PHP < 8 compatible.

Created on 3 August 2023, over 1 year ago

Problem/Motivation

Currently, we are using the "match" statement to switch between the local and remote photoswipe library. The problem with this is, that "match()" got introduced in PHP 8.0.0, meaning the module isn't compatible with any PHP version smaller then PHP 8.0.0.

Steps to reproduce

Proposed resolution

Use a switch statement instead.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Fixed

Version

5.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Grevil

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

Comments & Activities

Production build 0.71.5 2024