Skip to content

Commit

Permalink
Merge pull request #24 from VincentLanglet/phpstanReturn
Browse files Browse the repository at this point in the history
Add phpstan-return phpdoc for QuadernoModel::find
  • Loading branch information
polimorfico authored Apr 15, 2024
2 parents 5896024 + 3ac5e65 commit 934e370
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions quaderno_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ abstract class QuadernoModel extends QuadernoClass {
* @param string|array|null $params
*
* @return static|static[]|false
* @phpstan-return ($params is string ? static|false : static[]|false)
*/
public static function find($params = array('page' => 1))
{
Expand Down

0 comments on commit 934e370

Please sign in to comment.