Skip to content

Commit 41f8d21

Browse files
PHP5 compatibility: Only starting with PHP7 keywords (such as 'unset') can be used as names
1 parent 8e7d0a3 commit 41f8d21

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/QueryFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function has($name)
7777
/**
7878
* {@inheritdoc}
7979
*/
80-
public function unset($name)
80+
public function remove($name)
8181
{
8282
unset($this->defaultParameters[$name]);
8383

src/QueryFactoryInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ public function set($name, $value);
5252
public function has($name);
5353

5454
/**
55-
* Unsets the default parameter with the given name.
55+
* Removes the default parameter with the given name.
5656
*
5757
* @param string $name
5858
* The name of the parameter to unset.
5959
*
6060
* @return $this
6161
* The updated query factory object.
6262
*/
63-
public function unset($name);
63+
public function remove($name);
6464

6565
/**
6666
* Returns a query object for the given Piwik API method.

0 commit comments

Comments
 (0)