php 8.3 compatibility

Created on 11 February 2025, about 2 months ago

Problem/Motivation

PHPCS give me this error when checking php8.3 compatibility :

The interface DateTimeInterface is intended for type hints only and is not implementable.

Steps to reproduce

Install module and run :
phpcs -p web/module/contrib/smart_date --standard="PHPCompatibility" --runtime-set testVersion "8.3" --extensions="php,module,inc,install,test,profile,theme"

Proposed resolution

Remove "implements DateTimeInterface" since it's defined in the Timestamp class

📌 Task
Status

Active

Version

4.2

Component

Code

Created by

🇧🇪Belgium arwillame Belgium 🇧🇪

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024