mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
refacto(phpstan-to-8): few adjustments
This commit is contained in:
@ -36,14 +36,14 @@ final class UsesCall
|
||||
/**
|
||||
* Holds the groups of the uses.
|
||||
*
|
||||
* @var array<string>
|
||||
* @var array<int, string>
|
||||
*/
|
||||
private array $groups = [];
|
||||
|
||||
/**
|
||||
* Creates a new Pending Call.
|
||||
*
|
||||
* @param array<string> $classAndTraits
|
||||
* @param array<int, string> $classAndTraits
|
||||
*/
|
||||
public function __construct(
|
||||
private string $filename,
|
||||
@ -89,7 +89,7 @@ final class UsesCall
|
||||
*/
|
||||
public function group(string ...$groups): UsesCall
|
||||
{
|
||||
$this->groups = $groups;
|
||||
$this->groups = array_values($groups);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user