Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6add43f

Browse files
authored
Fix: Use returned value of usingSystemVariables() (#7)
1 parent 3bc875b commit 6add43f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

‎src/ManagesSystemVariables.php‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function setSystemVariables(array $values, bool $memoizeForReconnect = tr
6161
* @param mixed $value
6262
* @param callable $callback
6363
* @param mixed ...$args
64-
* @return $this
64+
* @return mixed
6565
*/
6666
public function usingSystemVariable(string $key, $value, callable $callback, ...$args)
6767
{
@@ -75,13 +75,11 @@ public function usingSystemVariable(string $key, $value, callable $callback, ...
7575
* @param array $values
7676
* @param callable $callback
7777
* @param mixed ...$args
78-
* @return $this
78+
* @return mixed
7979
*/
8080
public function usingSystemVariables(array $values, callable $callback, ...$args)
8181
{
82-
(new SystemVariableTemporaryAssigner($this->readPdo, $this->pdo))
82+
return(new SystemVariableTemporaryAssigner($this->readPdo, $this->pdo))
8383
->using($values, $callback, ...$args);
84-
85-
return $this;
8684
}
8785
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /