Add default value for argument in Neuron constructor.
This commit is contained in:
parent
b8b1a1c8f9
commit
68bc906ecf
@ -22,7 +22,7 @@ class Neuron {
|
||||
|
||||
private $data;
|
||||
|
||||
public function __construct($data){
|
||||
public function __construct($data = []){
|
||||
$this->data = (array) $data;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user