Skip to content

Commit 766f362

Browse files
committed
Give default value to last parameter due to it being required after an optional parameter
1 parent 0ea929a commit 766f362

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/cache/sfCache.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) 2004-2006 Fabien Potencier <[email protected]>
6-
*
6+
*
77
* For the full copyright and license information, please view the LICENSE
88
* file that was distributed with this source code.
99
*/
@@ -64,7 +64,7 @@ abstract public function has($id, $namespace = self::DEFAULT_NAMESPACE, $doNotTe
6464
*
6565
* @return boolean true if no problem
6666
*/
67-
abstract public function set($id, $namespace = self::DEFAULT_NAMESPACE, $data);
67+
abstract public function set($id, $namespace = self::DEFAULT_NAMESPACE, $data = '');
6868

6969
/**
7070
* Removes a content from the cache.

lib/cache/sfFileCache.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ public function has($id, $namespace = self::DEFAULT_NAMESPACE, $doNotTestCacheVa
289289
*
290290
* @see sfCache
291291
*/
292-
public function set($id, $namespace = self::DEFAULT_NAMESPACE, $data)
292+
public function set($id, $namespace = self::DEFAULT_NAMESPACE, $data = '')
293293
{
294294
list($path, $file) = $this->getFileName($id, $namespace);
295295

lib/cache/sfSQLiteCache.class.php

Lines changed: 3 additions & 3 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) 2004-2006 Fabien Potencier <[email protected]>
6-
*
6+
*
77
* For the full copyright and license information, please view the LICENSE
88
* file that was distributed with this source code.
99
*/
@@ -217,7 +217,7 @@ public function has($id, $namespace = self::DEFAULT_NAMESPACE, $doNotTestCacheVa
217217

218218
return sqlite_num_rows(sqlite_query($statement, $this->conn)) ? true : false;
219219
}
220-
220+
221221
/**
222222
* Saves some data in the cache.
223223
*
@@ -229,7 +229,7 @@ public function has($id, $namespace = self::DEFAULT_NAMESPACE, $doNotTestCacheVa
229229
*
230230
* @see sfCache
231231
*/
232-
public function set($id, $namespace = self::DEFAULT_NAMESPACE, $data)
232+
public function set($id, $namespace = self::DEFAULT_NAMESPACE, $data = '')
233233
{
234234
if ($this->automaticCleaningFactor > 0)
235235
{

0 commit comments

Comments
 (0)