Skip to content

Instantly share code, notes, and snippets.

View ollyollyollyltd's full-sized avatar

ollyollyollyltd

View GitHub Profile
@ollyollyollyltd
ollyollyollyltd / PHP-8.4-compatibility.patch
Created August 28, 2025 10:11
Patch for `voku/stringy` PHP 8.4 compatibility issues
From b9f33d8fe48e7f46c9c7c5d815a82e49f415e907 Mon Sep 17 00:00:00 2001
From: Tom Arbesser-Rastburg <[email protected]>
Date: Sat, 7 Dec 2024 22:55:49 +1100
Subject: [PATCH] Fix PHP 8.4 deprecation warnings
---
composer.json | 2 +-
src/Create.php | 2 +-
src/StaticStringy.php | 170 +++++++++++++++++++++---------------------
src/Stringy.php | 38 +++++-----
@ollyollyollyltd
ollyollyollyltd / PHP-8.4-compatibility.patch
Last active August 28, 2025 10:10
Patch for `voku/portable-utf8` PHP 8.4 compatibility issues
From 48c36239a2792ebc999044ffab7935011a58009e Mon Sep 17 00:00:00 2001
From: Alan Hardman <[email protected]>
Date: Wed, 19 Feb 2025 16:34:13 -0700
Subject: [PATCH] PHP 8.4 compatibility
This updates all function definitions with explicitly nullable parameters. The implicit null behavior is deprecated in PHP 8.4.
I currently rely on your anti-xss package that depends on this, so hopefully this is an acceptable change.
---
src/voku/helper/UTF8.php | 72 ++++++++++++++++++++--------------------