Skip to content

Commit

Permalink
ISSUE-1478: Fixed findFirst return type
Browse files Browse the repository at this point in the history
  • Loading branch information
BeMySlaveDarlin committed Mar 21, 2021
1 parent 94d96c9 commit 17043d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# [4.0.6](https://github.com/phalcon/cphalcon/releases/tag/v4.0.6)
## Fixed
- Fixed model findFirst return type error [#1478](https://github.com/phalcon/phalcon-devtools/issues/1478)

# [4.0.5](https://github.com/phalcon/cphalcon/releases/tag/v4.0.5) (2021-03-14)
## Fixed
- Fixed model creation failure in webtools due to wrong variable mutation [#1415](https://github.com/phalcon/phalcon-devtools/issues/1415)
Expand Down
4 changes: 2 additions & 2 deletions src/Generator/Snippet.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,9 @@ public function getModelFindFirst($className)
* Allows to query the first record that match the specified conditions
*
* @param mixed \$parameters
* @return %s|\Phalcon\Mvc\Model\ResultInterface
* @return %s|\Phalcon\Mvc\Model\ResultInterface|\Phalcon\Mvc\ModelInterface|null
*/
public static function findFirst(\$parameters = null)
public static function findFirst(\$parameters = null): ?\Phalcon\Mvc\ModelInterface
{
return parent::findFirst(\$parameters);
}
Expand Down

0 comments on commit 17043d5

Please sign in to comment.