Arguments passed to preg_split() do not match the required types

Created on 13 April 2022, over 2 years ago
Updated 14 July 2023, over 1 year ago

Problem:

Phan tool reported SEVERITY_CRITICAL issue:
- PhanTypeMismatchArgumentInternalReal. Line 1268 in advagg/advagg.inc: "Argument 3 ($limit) is NULL of type null but \preg_split() takes int"

Steps to reproduce:

run Phan tool ('minimum_target_php_version' => '8.0')

Proposed resolution:

Replace NULL to 0 for input parameter $limit of integer type in preg_split() .

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡§πŸ‡ΎBelarus alena_stanul

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

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