File: 0003-Make-provider-functions-static-PHPUnit-11-Fix.patch

package info (click to toggle)
php-embed 4.4.17-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,728 kB
  • sloc: php: 40,309; makefile: 23
file content (22 lines) | stat: -rw-r--r-- 682 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
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Sun, 19 May 2024 15:10:15 +0200
Subject: Make provider functions static (PHPUnit 11 Fix)

Bug-Debian: https://bugs.debian.org/1070540
---
 tests/FunctionsTest.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/FunctionsTest.php b/tests/FunctionsTest.php
index bb5e959..8ec1eaa 100644
--- a/tests/FunctionsTest.php
+++ b/tests/FunctionsTest.php
@@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
 
 class FunctionsTest extends TestCase
 {
-    public function urlsProvider(): array
+    public static function urlsProvider(): array
     {
         return [
             ['https://foo.com', true],