File: 1012_php8.2.patch

package info (click to toggle)
php-horde-text-diff 2.2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 412 kB
  • sloc: php: 1,680; xml: 450; sh: 3; makefile: 2
file content (43 lines) | stat: -rw-r--r-- 1,600 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Description: Fix PHP 8.2 deprecation warnings.
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

--- a/Horde_Text_Diff-2.2.1/lib/Horde/Text/Diff/Engine/Native.php
+++ b/Horde_Text_Diff-2.2.1/lib/Horde/Text/Diff/Engine/Native.php
@@ -26,6 +26,7 @@
  * @author  Geoffrey T. Dairiki <dairiki@dairiki.org>
  * @package Text_Diff
  */
+#[AllowDynamicProperties]
 class Horde_Text_Diff_Engine_Native
 {
     public function diff($from_lines, $to_lines)
--- a/Horde_Text_Diff-2.2.1/lib/Horde/Text/Diff/ThreeWay/BlockBuilder.php
+++ b/Horde_Text_Diff-2.2.1/lib/Horde/Text/Diff/ThreeWay/BlockBuilder.php
@@ -8,6 +8,7 @@
  * @package Text_Diff
  * @author  Geoffrey T. Dairiki <dairiki@dairiki.org>
  */
+#[\AllowDynamicProperties]
 class Horde_Text_Diff_ThreeWay_BlockBuilder
 {
     public function __construct()
--- a/Horde_Text_Diff-2.2.1/lib/Horde/Text/Diff/ThreeWay/Op/Base.php
+++ b/Horde_Text_Diff-2.2.1/lib/Horde/Text/Diff/ThreeWay/Op/Base.php
@@ -8,6 +8,7 @@
  * @package Text_Diff
  * @author  Geoffrey T. Dairiki <dairiki@dairiki.org>
  */
+#[\AllowDynamicProperties]
 class Horde_Text_Diff_ThreeWay_Op_Base
 {
     public function __construct($orig = false, $final1 = false, $final2 = false)
--- a/Horde_Text_Diff-2.2.1/lib/Horde/Text/Diff/ThreeWay/Op/Copy.php
+++ b/Horde_Text_Diff-2.2.1/lib/Horde/Text/Diff/ThreeWay/Op/Copy.php
@@ -8,6 +8,7 @@
  * @package Text_Diff
  * @author  Geoffrey T. Dairiki <dairiki@dairiki.org>
  */
+#[\AllowDynamicProperties]
 class Horde_Text_Diff_ThreeWay_Op_Copy extends Horde_Text_Diff_ThreeWay_Op_Base
 {
     public function __construct($lines = false)