All void methods, like Model->set_attributes, should return instance of self ($this) instead of void thus making instance method call possible (PHP 5.4).
Sample use:
$mod[] = (new SomeModel())->set_attributes($attr);
$mod[] should then link to instance of SomeModel not become void.
All void methods, like
Model->set_attributes
, should return instance of self ($this) instead of void thus making instance method call possible (PHP 5.4).Sample use:
$mod[]
should then link to instance of SomeModel not become void.This issue also affects method chaining.