Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Jan 16, 2025
1 parent 31f70b7 commit 1159a75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/StartupPolicy/Collector/CallableCollectorPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

use Yiisoft\Yii\Debug\Collector\CollectorInterface;

use function call_user_func;

/**
* @psalm-type TCallable = callable(CollectorInterface, object): bool
*/
Expand All @@ -30,6 +28,6 @@ public function __construct(

public function satisfies(CollectorInterface $collector, object $event): bool
{
return call_user_func($this->callable, $collector, $event);
return ($this->callable)($collector, $event);
}
}
4 changes: 1 addition & 3 deletions src/StartupPolicy/Debugger/CallableDebuggerPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace Yiisoft\Yii\Debug\StartupPolicy\Debugger;

use function call_user_func;

/**
* @psalm-type TCallable = callable(object): bool
*/
Expand All @@ -28,6 +26,6 @@ public function __construct(

public function satisfies(object $event): bool
{
return call_user_func($this->callable, $event);
return ($this->callable)($event);
}
}

0 comments on commit 1159a75

Please sign in to comment.