File: switch-to-willReturnCallback.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 (24 lines) | stat: -rw-r--r-- 1,146 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
From: Joe Nahmias <jello@debian.org>
Date: Thu, 11 Sep 2025 22:48:38 -0400
Subject: switch to willReturnCallback()

---
 tests/unit/Swift/Events/SimpleEventDispatcherTest.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/unit/Swift/Events/SimpleEventDispatcherTest.php b/tests/unit/Swift/Events/SimpleEventDispatcherTest.php
index 4272bb3..00cc5a7 100644
--- a/tests/unit/Swift/Events/SimpleEventDispatcherTest.php
+++ b/tests/unit/Swift/Events/SimpleEventDispatcherTest.php
@@ -150,9 +150,9 @@ class Swift_Events_SimpleEventDispatcherTest extends \PHPUnit\Framework\TestCase
         $listenerA1->expects($this->once())
                   ->method('sendPerformed')
                   ->with($evtA)
-                  ->will($this->returnCallback(function ($object) use ($evtB) {
+                  ->willReturnCallback(function ($object) use ($evtB) {
                       $this->dispatcher->dispatchEvent($evtB, 'beforeTransportStarted');
-                  }));
+                  });
         $listenerA2->expects($this->once())
                   ->method('sendPerformed')
                   ->with($evtA);