mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-19 21:11:38 +02:00
update deps & install rector
This commit is contained in:
@@ -7,13 +7,9 @@ abstract class Vehicle
|
||||
/**
|
||||
* @var object[]
|
||||
*/
|
||||
private $data = [];
|
||||
private array $data = [];
|
||||
|
||||
/**
|
||||
* @param string $key
|
||||
* @param object $value
|
||||
*/
|
||||
public function setPart($key, $value)
|
||||
public function setPart(string $key, object $value)
|
||||
{
|
||||
$this->data[$key] = $value;
|
||||
}
|
||||
|
Reference in New Issue
Block a user