Laravel DDD CI #398
Annotations
10 errors
Run PHPStan analysis:
tests/Builder/Stub/StubModelOperation.php (in context of class Tests/Builder/Stub/StubProject)#L88
Generic type Illuminate\Database\Eloquent\Relations\HasMany<App\Domain\User\User> in PHPDoc tag @return does not specify all template types of class Illuminate\Database\Eloquent\Relations\HasMany: TRelatedModel, TDeclaringModel
|
Run PHPStan analysis:
tests/Builder/Stub/StubModelOperation.php (in context of class Tests/Builder/Stub/StubProject)#L99
Method Tests\Builder\Stub\StubProject::mockHasMany() should return Illuminate\Database\Eloquent\Relations\HasMany<App\Domain\User\User> but returns Illuminate\Database\Eloquent\Relations\HasMany<Illuminate\Database\Eloquent\Model, $this(Tests\Builder\Stub\StubProject)>.
|
Run PHPStan analysis:
tests/Builder/Stub/StubModelOperation.php (in context of class Tests/Builder/Stub/StubProject)#L106
Generic type Illuminate\Database\Eloquent\Relations\BelongsToMany<App\Domain\User\User> in PHPDoc tag @return does not specify all template types of class Illuminate\Database\Eloquent\Relations\BelongsToMany: TRelatedModel, TDeclaringModel
|
Run PHPStan analysis:
tests/Builder/Stub/StubModelOperation.php (in context of class Tests/Builder/Stub/StubProject)#L121
Method Tests\Builder\Stub\StubProject::mockBelongsToMany() should return Illuminate\Database\Eloquent\Relations\BelongsToMany<App\Domain\User\User> but returns Illuminate\Database\Eloquent\Relations\BelongsToMany<Illuminate\Database\Eloquent\Model, $this(Tests\Builder\Stub\StubProject)>.
|
Run PHPStan analysis:
tests/Builder/Stub/StubModelOperation.php (in context of class Tests/Builder/Stub/StubUser)#L88
Generic type Illuminate\Database\Eloquent\Relations\HasMany<App\Domain\Project\Project> in PHPDoc tag @return does not specify all template types of class Illuminate\Database\Eloquent\Relations\HasMany: TRelatedModel, TDeclaringModel
|
Run PHPStan analysis:
tests/Builder/Stub/StubModelOperation.php (in context of class Tests/Builder/Stub/StubUser)#L99
Method Tests\Builder\Stub\StubUser::mockHasMany() should return Illuminate\Database\Eloquent\Relations\HasMany<App\Domain\Project\Project> but returns Illuminate\Database\Eloquent\Relations\HasMany<Illuminate\Database\Eloquent\Model, $this(Tests\Builder\Stub\StubUser)>.
|
Run PHPStan analysis:
tests/Builder/Stub/StubModelOperation.php (in context of class Tests/Builder/Stub/StubUser)#L106
Generic type Illuminate\Database\Eloquent\Relations\BelongsToMany<App\Domain\Project\Project> in PHPDoc tag @return does not specify all template types of class Illuminate\Database\Eloquent\Relations\BelongsToMany: TRelatedModel, TDeclaringModel
|
Run PHPStan analysis:
tests/Builder/Stub/StubModelOperation.php (in context of class Tests/Builder/Stub/StubUser)#L121
Method Tests\Builder\Stub\StubUser::mockBelongsToMany() should return Illuminate\Database\Eloquent\Relations\BelongsToMany<App\Domain\Project\Project> but returns Illuminate\Database\Eloquent\Relations\BelongsToMany<Illuminate\Database\Eloquent\Model, $this(Tests\Builder\Stub\StubUser)>.
|
Run PHPStan analysis:
tests/Builder/UserBuilder.php#L23
Property Tests\Builder\UserBuilder::$email_verified_at (Carbon\CarbonImmutable|null) is never assigned Carbon\CarbonImmutable so it can be removed from the property type.
|
Run PHPStan analysis:
tests/Builder/UserBuilder.php#L27
Property Tests\Builder\UserBuilder::$remember_token (string|null) is never assigned string so it can be removed from the property type.
|
Loading