-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I've got this model class:
/**
* @property-read \App\Domain\Equipment\State\ArticleCategoryType\ArticleCategoryType $type
* @property-read \App\Domain\Equipment\State\ArticleCategoryTarget\ArticleCategoryTarget $target
*/
class ArticleCategory extends ModelBut whenever calling ->type on a model instance, Psalm things type is a string or null:
InvalidReturnType - app/Domain/Equipment/Models/ArticleCategory.php:159:32 - The declared return type 'App\Domain\Equipment\State\ArticleCategoryType\ArticleCategoryType' for App\Domain\Equipment\Models\ArticleCategory::getType is incorrect, got 'null|string'
alies-dev
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working