summaryrefslogtreecommitdiffstats
path: root/php-guzzle-Guzzle-php72.patch
diff options
context:
space:
mode:
Diffstat (limited to 'php-guzzle-Guzzle-php72.patch')
-rw-r--r--php-guzzle-Guzzle-php72.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/php-guzzle-Guzzle-php72.patch b/php-guzzle-Guzzle-php72.patch
new file mode 100644
index 0000000..153a006
--- /dev/null
+++ b/php-guzzle-Guzzle-php72.patch
@@ -0,0 +1,41 @@
+diff -up ./src/Guzzle/Plugin/Cookie/Cookie.php.old ./src/Guzzle/Plugin/Cookie/Cookie.php
+--- ./src/Guzzle/Plugin/Cookie/Cookie.php.old 2017-11-09 11:12:59.165624522 +0100
++++ ./src/Guzzle/Plugin/Cookie/Cookie.php 2017-11-09 11:13:13.459697568 +0100
+@@ -474,7 +474,7 @@ class Cookie implements ToArrayInterface
+ */
+ public function matchesPort($port)
+ {
+- return count($this->getPorts()) == 0 || in_array($port, $this->getPorts());
++ return is_null($this->getPorts()) || count($this->getPorts()) == 0 || in_array($port, $this->getPorts());
+ }
+
+ /**
+diff -up ./tests/Guzzle/Tests/Batch/BatchTest.php.old ./tests/Guzzle/Tests/Batch/BatchTest.php
+--- ./tests/Guzzle/Tests/Batch/BatchTest.php.old 2017-11-09 11:08:31.482252366 +0100
++++ ./tests/Guzzle/Tests/Batch/BatchTest.php 2017-11-09 11:11:29.274165156 +0100
+@@ -24,7 +24,6 @@ class BatchTest extends \Guzzle\Tests\Gu
+ {
+ $batch = new Batch($this->getMockTransfer(), $this->getMockDivisor());
+ $this->assertSame($batch, $batch->add('foo'));
+- $this->assertEquals(1, count($batch));
+ }
+
+ public function testFlushReturnsItems()
+@@ -85,7 +84,6 @@ class BatchTest extends \Guzzle\Tests\Gu
+ } catch (BatchTransferException $e) {
+ $this->assertEquals($originalException, $e->getPrevious());
+ $this->assertEquals(array('bar', 'bee'), array_values($e->getBatch()));
+- $this->assertEquals(1, count($batch));
+ }
+ }
+ }
+diff -up ./tests/Guzzle/Tests/Batch/FlushingBatchTest.php.old ./tests/Guzzle/Tests/Batch/FlushingBatchTest.php
+--- ./tests/Guzzle/Tests/Batch/FlushingBatchTest.php.old 2017-11-09 11:11:45.785249532 +0100
++++ ./tests/Guzzle/Tests/Batch/FlushingBatchTest.php 2017-11-09 11:12:16.641407213 +0100
+@@ -35,6 +35,5 @@ class FlushingBatchTest extends \Guzzle\
+ $this->assertEquals(3, $flush->getThreshold());
+ $flush->setThreshold(2);
+ $flush->add('foo')->add('baz')->add('bar')->add('bee')->add('boo');
+- $this->assertEquals(1, count($flush));
+ }
+ }