Skip to content

Commit

Permalink
Remove baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
Prokyonn committed Sep 29, 2023
1 parent 54d620e commit d0f6624
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 80 deletions.
4 changes: 2 additions & 2 deletions Entity/Comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Comment implements CommentInterface, AuditableInterface
protected $state = self::STATE_PUBLISHED;

/**
* @var string
* @var string|null
*/
protected $message;

Expand Down Expand Up @@ -61,7 +61,7 @@ class Comment implements CommentInterface, AuditableInterface
protected $parent;

/**
* @var Collection|CommentInterface[]
* @var Collection<int, CommentInterface>|CommentInterface[]
*/
protected $children;

Expand Down
5 changes: 4 additions & 1 deletion Entity/Thread.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Thread implements ThreadInterface, AuditableInterface
protected $commentCount = 0;

/**
* @var Collection
* @var Collection<int, CommentInterface>
*/
protected $comments;

Expand All @@ -71,6 +71,9 @@ class Thread implements ThreadInterface, AuditableInterface
*/
protected $creator;

/**
* @param Collection<int, CommentInterface>|null $comments
*/
public function __construct(string $type, string $entityId, Collection $comments = null, int $commentCount = 0)
{
$this->type = $type;
Expand Down
76 changes: 0 additions & 76 deletions phpstan-baseline.neon

This file was deleted.

4 changes: 3 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ includes:
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon
- vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon
- phpstan-baseline.neon

parameters:
paths:
Expand All @@ -21,3 +20,6 @@ parameters:
console_application_loader: Tests/phpstan/console-application.php
doctrine:
objectManagerLoader: Tests/phpstan/object-manager.php
ignoreErrors:
- "#^Property .* type mapping mismatch\\: property can contain .* but database .*$#"
- "#^Property .* type mapping mismatch\\: database can contain .* but property .*$#"

0 comments on commit d0f6624

Please sign in to comment.