Skip to content

Commit 23725cb

Browse files
committed
Fix Declaration of sfPearRestTest::downloadHttp($url, $lastmodified = null, $accept = false) must be compatible with sfPearRest::downloadHttp($url, $lastmodified = null, $accept = false, $channel = false)
1 parent c41c870 commit 23725cb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/plugin/sfPearRest.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* This file is part of the symfony package.
55
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
6-
*
6+
*
77
* For the full copyright and license information, please view the LICENSE
88
* file that was distributed with this source code.
99
*/
@@ -23,7 +23,7 @@ class sfPearRest extends PEAR_REST
2323
/**
2424
* @see PEAR_REST::downloadHttp()
2525
*/
26-
public function downloadHttp($url, $lastmodified = null, $accept = false)
26+
public function downloadHttp($url, $lastmodified = null, $accept = false, $channel = false)
2727
{
2828
return parent::downloadHttp($url, $lastmodified, array_merge(false !== $accept ? $accept : array(), array("\r\nX-SYMFONY-VERSION: ".SYMFONY_VERSION)));
2929
}

test/unit/plugin/sfPearRestTest.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* This file is part of the symfony package.
55
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
6-
*
6+
*
77
* For the full copyright and license information, please view the LICENSE
88
* file that was distributed with this source code.
99
*/
@@ -21,7 +21,7 @@ class sfPearRestTest extends sfPearRest
2121
/**
2222
* @see PEAR_REST::downloadHttp()
2323
*/
24-
public function downloadHttp($url, $lastmodified = null, $accept = false)
24+
public function downloadHttp($url, $lastmodified = null, $accept = false, $channel = false)
2525
{
2626
try
2727
{

0 commit comments

Comments
 (0)