File: declare-dataProvider-functions-as-static.patch

package info (click to toggle)
libphp-swiftmailer 6.3.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,164 kB
  • sloc: php: 27,203; sh: 36; makefile: 16
file content (49 lines) | stat: -rw-r--r-- 2,143 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
44
45
46
47
48
49
From: Joe Nahmias <jello@debian.org>
Date: Fri, 12 Sep 2025 15:13:56 -0400
Subject: declare dataProvider functions as static

---
 tests/bug/Swift/Bug650Test.php                                   | 2 +-
 tests/unit/Swift/Mime/ContentEncoder/PlainContentEncoderTest.php | 2 +-
 tests/unit/Swift/Transport/EsmtpTransportTest.php                | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/bug/Swift/Bug650Test.php b/tests/bug/Swift/Bug650Test.php
index 31036c6..8050188 100644
--- a/tests/bug/Swift/Bug650Test.php
+++ b/tests/bug/Swift/Bug650Test.php
@@ -25,7 +25,7 @@ class Swift_Bug650Test extends \PHPUnit\Framework\TestCase
         $this->assertSame('To: '.$expectedEncodedName." <test@example.com>\r\n", $header->toString());
     }
 
-    public function encodingDataProvider()
+    public static function encodingDataProvider()
     {
         return [
             ['this is " a test รถ', 'this is =?utf-8?Q?=22?= a test =?utf-8?Q?=C3=B6?='],
diff --git a/tests/unit/Swift/Mime/ContentEncoder/PlainContentEncoderTest.php b/tests/unit/Swift/Mime/ContentEncoder/PlainContentEncoderTest.php
index 270d02c..4b1f97c 100644
--- a/tests/unit/Swift/Mime/ContentEncoder/PlainContentEncoderTest.php
+++ b/tests/unit/Swift/Mime/ContentEncoder/PlainContentEncoderTest.php
@@ -112,7 +112,7 @@ class Swift_Mime_ContentEncoder_PlainContentEncoderTest extends \SwiftMailerTest
             );
     }
 
-    public function crlfProvider()
+    public static function crlfProvider()
     {
         return [
             ["\r", "a\r\nb"],
diff --git a/tests/unit/Swift/Transport/EsmtpTransportTest.php b/tests/unit/Swift/Transport/EsmtpTransportTest.php
index a273815..31cfa12 100644
--- a/tests/unit/Swift/Transport/EsmtpTransportTest.php
+++ b/tests/unit/Swift/Transport/EsmtpTransportTest.php
@@ -576,7 +576,7 @@ class Swift_Transport_EsmtpTransportTest extends Swift_Transport_AbstractSmtpEve
         $smtp->send($message, $failedRecipients);
     }
 
-    public function providerPipeliningOverride()
+    public static function providerPipeliningOverride()
     {
         return [
             [null, true, true],