Use PHP constructor property promotion

This commit is contained in:
Peter Kokot
2023-05-24 08:19:33 +02:00
parent 6513260001
commit 003bb06c7e
3 changed files with 6 additions and 12 deletions

View File

@@ -82,11 +82,8 @@ namespace Database;
class Database
{
protected $adapter;
public function __construct(AdapterInterface $adapter)
public function __construct(protected AdapterInterface $adapter)
{
$this->adapter = $adapter;
}
}