Package: php-sabredav / 1.8.12-7

0008-Fix-for-TypeError-Argument-2-passed-to-PHPUnit-Frame.patch Patch series | 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
From: Mathieu Parent <math.parent@gmail.com>
Date: Sun, 22 Apr 2018 21:07:58 +0200
Subject: Fix for TypeError: Argument 2 passed to
 PHPUnit\Framework\Assert::assertTrue() must be of the type string,
 null given

Since https://github.com/sebastianbergmann/phpunit/commit/852e5405df1f3f8b46ae54963472b6226f8559e5 (PHPUnit 7.0.0)

Bug-Debian: https://bugs.debian.org/895603
---
 tests/Sabre/CardDAV/ValidateFilterTest.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/Sabre/CardDAV/ValidateFilterTest.php b/tests/Sabre/CardDAV/ValidateFilterTest.php
index c87716c..8673d0f 100644
--- a/tests/Sabre/CardDAV/ValidateFilterTest.php
+++ b/tests/Sabre/CardDAV/ValidateFilterTest.php
@@ -9,7 +9,7 @@ class ValidateFilterTest extends AbstractPluginTest {
     /**
      * @dataProvider data
      */
-    function testFilter($input, $filters, $test, $result, $message = null) {
+    function testFilter($input, $filters, $test, $result, $message = '') {
 
         if ($result) {
             $this->assertTrue($this->plugin->validateFilters($input, $filters, $test), $message);