Only use immutable datetime objects #842
lint.yaml
on: pull_request
PHP-CS-Fixer
6s
Matrix: Linters
Annotations
3 errors
Linters (8.2):
src/DataFixtures/AppFixtures.php#L77
Parameter #1 $publishedAt of method App\Entity\Post::setPublishedAt() expects DateTimeImmutable, DateTime given.
|
Linters (8.2):
src/DataFixtures/AppFixtures.php#L157
Method App\DataFixtures\AppFixtures::getPostData() should return array<int, array{string, Symfony\Component\String\AbstractUnicodeString, string, string, DateTime, App\Entity\User, array<App\Entity\Tag>}> but returns array<int<0, max>, array{string, Symfony\Component\String\AbstractUnicodeString, string, string, DateTimeImmutable, App\Entity\User, array<App\Entity\Tag>}>.
|
Linters (8.2)
Process completed with exit code 1.
|