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: Mon, 11 Mar 2019 17:00:31 -1000
Subject: Adapt to recent PHPUnit
Forwarded: no
---
tests/Functional/Net/SFTPUserStoryTest.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/Functional/Net/SFTPUserStoryTest.php b/tests/Functional/Net/SFTPUserStoryTest.php
index 1e32bcb..5407813 100644
--- a/tests/Functional/Net/SFTPUserStoryTest.php
+++ b/tests/Functional/Net/SFTPUserStoryTest.php
@@ -141,7 +141,7 @@ class Functional_Net_SFTPUserStoryTest extends PhpseclibFunctionalTestCase
return $sftp;
}
- static function demoCallback($length)
+ static function demoCallback(callable $length): PHPUnit\Framework\Constraint\Callback
{
$r = substr(self::$buffer, 0, $length);
self::$buffer = substr(self::$buffer, $length);
|