PHP 8.3 compatibility warning

Created on 16 April 2025, about 1 month ago

Hi team

Getting the following warning while running the PHP 8.3 compatibility.

FILE: /home/amaranto/Desarrollo/1X/avl/docroot/modules/contrib/commerce_stripe/src/WebhookEventState.php
--------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------
 22 | ERROR | "$this" can no longer be used in a plain function or method since PHP 7.1.
--------------------------------------------------------------------------------------------------------

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain abarrio

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

Comments & Activities

  • Issue created by @abarrio
  • πŸ‡ΊπŸ‡ΈUnited States TomTech

    Hi, thanks for the report, but this seems to be erroneous report in whatever tool you are using to analyze the code.

    This class is an enum class, which was not introduced until php8.1, and is using appropriate syntax for a self-describing label.

Production build 0.71.5 2024