From 4f8d7e0b4d2bc04a72d812cbc766c5641cd9fcdc Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sat, 16 Aug 2025 07:57:33 +0700 Subject: [PATCH] [Scoper] Exclude DateRangeError on scoper.php to be skipped as native PHP 8.3+ class --- scoper.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scoper.php b/scoper.php index 6a470a5f1..5ee3edbb1 100644 --- a/scoper.php +++ b/scoper.php @@ -13,6 +13,11 @@ // see https://github.com/humbug/php-scoper return [ 'prefix' => 'SwissKnife' . $timestamp, + // exclude + 'exclude-classes' => [ + // native class on php 8.3+ + 'DateRangeError', + ], 'expose-constants' => ['#^SYMFONY\_[\p{L}_]+$#'], 'exclude-namespaces' => [ '#^Rector\\\\SwissKnife#',