Add default value for argument in Neuron constructor.

This commit is contained in:
kj 2021-10-15 17:22:53 -04:00
parent b8b1a1c8f9
commit 68bc906ecf

View File

@ -22,7 +22,7 @@ class Neuron {
private $data;
public function __construct($data){
public function __construct($data = []){
$this->data = (array) $data;
}