Skip to content

Commit

Permalink
fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Dec 2, 2024
1 parent 58e6983 commit ab93b5f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/util/Loop.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function execute(callable $code)
$deadline = microtime(true) + $this->timeout;

$result = null;
for ($i = 0; $this->looping && microtime(true) < $deadline; ++$i) {
for ($i = 0; $this->looping && microtime(true) < $deadline; ++$i) { // @phpstan-ignore-line
$result = $code();
if (!$this->looping) { // @phpstan-ignore-line
/*
Expand Down
4 changes: 0 additions & 4 deletions tests/mutex/PHPRedisMutexTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@
if (PHP_MAJOR_VERSION >= 8) {
trait RedisTestTrait
{
#[\Override]
public function eval($script, $args = [], $numKeys = 0): mixed
{
return $this->_eval($script, $args, $numKeys);
}

#[\Override]
public function set($key, $value, $options = null): /* Redis|string| */ bool
{
return $this->_set($key, $value, $options);
Expand All @@ -29,7 +27,6 @@ trait RedisTestTrait
/**
* @return mixed
*/
#[\Override]
public function eval($script, $args = [], $numKeys = 0)
{
return $this->_eval($script, $args, $numKeys);
Expand All @@ -38,7 +35,6 @@ public function eval($script, $args = [], $numKeys = 0)
/**
* @return Redis|string|bool
*/
#[\Override]
public function set($key, $value, $options = null)
{
return $this->_set($key, $value, $options);
Expand Down

0 comments on commit ab93b5f

Please sign in to comment.