Skip to content
Snippets Groups Projects
Verified Commit f2123b04 authored by William Desportes's avatar William Desportes :sailboat:
Browse files

Add a patch for PHP 8.2 dynamic properties (Closes: #1033832)

parent 914a40f8
No related branches found
No related tags found
1 merge request!1Fix failing tests
From: William Desportes <williamdes@wdes.fr>
Date: Sun, 2 Apr 2023 16:56:24 +0200
Subject: Fix DB_error tests dynamic properties PHP 8.2
Warning: Undefined array key 8192 in DB-1.11.0/tests/db_error2.php on line 43
: creation of dynamic property db_error::$callback is deprecated in pear.php on line xxx
Origin: vendor
Forwarded: no
---
DB-1.11.0/DB.php | 1 +
1 file changed, 1 insertion(+)
diff --git a/DB-1.11.0/DB.php b/DB-1.11.0/DB.php
index f4df46a..cdb6c35 100644
--- a/DB-1.11.0/DB.php
+++ b/DB-1.11.0/DB.php
@@ -961,6 +961,7 @@ class DB
* @version Release: 1.11.0
* @link http://pear.php.net/package/DB
*/
+#[\AllowDynamicProperties]
class DB_Error extends PEAR_Error
{
// {{{ constructor
0001-Remove-GET-and-POST-sections-in-tests-to-fix-FTBFS-o.patch
0002-PHP8-fixes.patch
0003-Fix-PHP8-tests-and-query-function.patch
0004-Fix-DB_error-tests-dynamic-properties-PHP-8.2.patch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment