Skip to content

Commit

Permalink
[phalcon#16577] - refactor: add @template for Model and add to @return
Browse files Browse the repository at this point in the history
…in find and findFirst
  • Loading branch information
noone-silent committed May 2, 2024
1 parent ad6678e commit 8722b92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion phalcon/Mvc/Model.zep
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ use Serializable;
* echo "Great, a new robot was saved successfully!";
* }
* ```
* @template T of static
*/
abstract class Model extends AbstractInjectionAware implements EntityInterface, ModelInterface, ResultInterface, Serializable, JsonSerializable
{
Expand Down Expand Up @@ -1630,6 +1631,7 @@ abstract class Model extends AbstractInjectionAware implements EntityInterface,
* ],
* 'hydration' => null
* ]
* @return T[]|\Phalcon\Mvc\Model\ResultsetInterface
*/
public static function find(var parameters = null) -> <ResultsetInterface>
{
Expand Down Expand Up @@ -1748,7 +1750,7 @@ abstract class Model extends AbstractInjectionAware implements EntityInterface,
* 'hydration' => null
* ]
*
* @return \Phalcon\Mvc\ModelInterface|\Phalcon\Mvc\Model\Row|null
* @return T|\Phalcon\Mvc\ModelInterface|\Phalcon\Mvc\Model\Row|null
*/
public static function findFirst(var parameters = null) -> var | null
{
Expand Down

0 comments on commit 8722b92

Please sign in to comment.