mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 10:33:49 +00:00
DX: apply rector rules up to php8.0
This commit is contained in:
@@ -15,14 +15,8 @@ use Chill\MainBundle\Pagination\PaginatorInterface;
|
||||
|
||||
class Collection
|
||||
{
|
||||
private $items;
|
||||
|
||||
private PaginatorInterface $paginator;
|
||||
|
||||
public function __construct($items, PaginatorInterface $paginator)
|
||||
public function __construct(private $items, private PaginatorInterface $paginator)
|
||||
{
|
||||
$this->items = $items;
|
||||
$this->paginator = $paginator;
|
||||
}
|
||||
|
||||
public function getItems()
|
||||
|
@@ -15,11 +15,8 @@ use JsonSerializable;
|
||||
|
||||
class Counter implements JsonSerializable
|
||||
{
|
||||
private int $counter;
|
||||
|
||||
public function __construct(?int $counter)
|
||||
public function __construct(private ?int $counter)
|
||||
{
|
||||
$this->counter = $counter;
|
||||
}
|
||||
|
||||
public function getCounter(): ?int
|
||||
|
Reference in New Issue
Block a user