Skip to content

Commit

Permalink
修正类型注释,更新基线文件
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Oct 23, 2023
1 parent cca2dd4 commit 8fddaad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
10 changes: 0 additions & 10 deletions phpstan-baseline/baseline-core.neon
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,6 @@ parameters:
count: 1
path: ../src/Server/Group/Listener/GroupRestore.php

-
message: "#^Method Imi\\\\Test\\\\Component\\\\Model\\\\Article\\:\\:getQueryRelationsList\\(\\) should return Imi\\\\Test\\\\Component\\\\Model\\\\Article\\|null but returns Imi\\\\Test\\\\Component\\\\Model\\\\ArticleEx\\|null\\.$#"
count: 1
path: ../tests/unit/Component/Model/Article.php

-
message: "#^Property Imi\\\\Test\\\\Component\\\\Model\\\\Article\\:\\:\\$queryRelationsList \\(Imi\\\\Test\\\\Component\\\\Model\\\\ArticleEx\\|null\\) does not accept Imi\\\\Test\\\\Component\\\\Model\\\\Article\\|null\\.$#"
count: 1
path: ../tests/unit/Component/Model/Article.php

-
message: "#^Argument of an invalid type Imi\\\\Util\\\\ArrayData supplied for foreach, only iterables are supported\\.$#"
count: 1
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/Component/Model/Article.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ public function setExWith(?ArticleEx $exWith)
*
* @JsonNotNull
*
* @var Article|null
* @var ArticleEx|null
*/
protected $queryRelationsList;

/**
* Get the value of queryRelationsList.
*
* @return Article|null
* @return ArticleEx|null
*/
public function getQueryRelationsList()
{
Expand All @@ -116,7 +116,7 @@ public function getQueryRelationsList()
/**
* Set the value of queryRelationsList.
*
* @param Article|null $queryRelationsList
* @param ArticleEx|null $queryRelationsList
*
* @return self
*/
Expand Down

0 comments on commit 8fddaad

Please sign in to comment.