The expression return $this->findEntity...erId, $type, $entryId)) returns the type OCP\AppFramework\Db\Entity which includes types incompatible with the type-hinted return OCA\Music\Db\Bookmark.
It seems like $bookmark->getType() can also be of type null; however, parameter $type of OCA\Music\Db\BookmarkMapper::findByEntry() does only seem to accept integer, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
It seems like $bookmark->getUserId() can also be of type null; however, parameter $userId of OCA\Music\Db\BookmarkMapper::findByEntry() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
It seems like $bookmark->getEntryId() can also be of type null; however, parameter $entryId of OCA\Music\Db\BookmarkMapper::findByEntry() does only seem to accept integer, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation