Fix Deprecated function: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in pantheon_advanced_page_cache_file_update()

Created on 21 May 2024, about 1 month ago
Updated 20 June 2024, 6 days ago

Problem/Motivation

In PHP 8.2

Deprecated function: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in pantheon_advanced_page_cache_file_update() (line 22 of /code/web/modules/contrib/pantheon_advanced_page_cache/pantheon_advanced_page_cache.module)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

N/A

API changes

N/A

Data model changes

N/A

📌 Task
Status

Needs review

Version

2.2

Component

Code

Created by

🇺🇸United States YesCT

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

Comments & Activities

  • Issue created by @YesCT
  • Status changed to Needs review about 1 month ago
  • 🇮🇳India sarwan

    Hi @YesCT,
    I have fixed this issue "Fix Deprecated function: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in pantheon_advanced_page_cache_file_update()" and also attached patch
    kindly review and verify .

  • 🇺🇸United States greg.1.anderson

    Being tracked internally as CMSP-722, which also covers PHP 8.3 compatibility.

Production build 0.69.0 2024