PHP 8.1 compatibility issue NullToStrictStringFuncCallArgRector

Created on 4 March 2025, about 1 month ago

Problem/Motivation

Rector reports NullToStrictStringFuncCallArgRector

Steps to reproduce

Run rector process web/modules/contrib/anchor_link/ --dry-run

Proposed resolution

-    $string = ltrim($string, '#');
+    $string = ltrim((string) $string, '#');
📌 Task
Status

Active

Version

3.0

Component

Code

Created by

🇷🇴Romania aludescher

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