docs icon indicating copy to clipboard operation
docs copied to clipboard

Phalcon\Mvc\Model\Resultset::serialize() returns string, no array

Open Chealer opened this issue 4 years ago • 0 comments

The documentation of Phalcon\Mvc\Model\Resultset pretty much says that serialize() returns "a big array":

Serializing a resultset will dump all related rows into a big array

As one may guess, this is in fact incorrect, as behavior shows it returns a string, as its synopsis indicates:

public function serialize(): string;

It would help to make the documentation more formal.

Chealer avatar Jul 21 '21 20:07 Chealer