I have a question about PHP syntax.
When defining functions and variables, which convention should I use?
I know they do the same thing in practice but I would like to know which method conforms to best practice standards.
Variables
public $varname = array();
or
public $varname = [];
Methods
public function foo($bar = array()){}
or
public function foo($bar = []){}