Another incompatible method declaration fixed + type-hints added

This commit is contained in:
Roland Häder 2022-06-16 18:36:56 +02:00
parent 40d7f29a11
commit 2c5595c358
2 changed files with 9 additions and 7 deletions

View file

@ -43,9 +43,9 @@ class ProfileFields extends BaseCollection
/**
* @param callable|null $callback
* @param int $flag
* @return ProfileFields
* @return ProfileFields as an extended version of BaseCollection
*/
public function filter(callable $callback = null, int $flag = 0): ProfileFields
public function filter(callable $callback = null, int $flag = 0): BaseCollection
{
return parent::filter($callback, $flag);
}