File: 0006-Mark-getTests-fonction-as-static.patch

package info (click to toggle)
php-twig 3.21.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 6,220 kB
  • sloc: php: 24,694; makefile: 110; sh: 43
file content (22 lines) | stat: -rw-r--r-- 698 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Sun, 12 Jan 2025 11:56:43 +0100
Subject: Mark getTests fonction as static

Bug-Debian: https://bugs.debian.org/1039841
---
 src/Test/NodeTestCase.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Test/NodeTestCase.php b/src/Test/NodeTestCase.php
index 0cb5b2f..7f46e48 100644
--- a/src/Test/NodeTestCase.php
+++ b/src/Test/NodeTestCase.php
@@ -29,7 +29,7 @@ abstract class NodeTestCase extends TestCase
     /**
      * @return iterable<array{0: Node, 1: string, 2?: Environment|null, 3?: bool}>
      */
-    public function getTests()
+    public static function getTests()
     {
         return [];
     }