Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Dec 4, 2022
1 parent 69e83e6 commit 12b9c13
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/ThisOutTest.php
Expand Up @@ -55,6 +55,7 @@ public function __construct($data) { $this->data = [$data]; }
* @psalm-this-out self<NewT>
*/
public function setData($data): void {
/** @psalm-suppress InvalidPropertyAssignmentValue */
$this->data = [$data];
}
/**
Expand All @@ -64,6 +65,7 @@ public function setData($data): void {
* @psalm-this-out self<T|NewT>
*/
public function addData($data): void {
/** @psalm-suppress InvalidPropertyAssignmentValue */
$this->data []= $data;
}
/**
Expand All @@ -83,10 +85,6 @@ public function getData(): array { return $this->data; }
'$data1===' => 'list<1>',
'$data2===' => 'list<2>',
'$data3===' => 'list<2|3>',
],
'ignored_issues' => [
'PropertyTypeCoercion',
'InvalidPropertyAssignmentValue'
]
]
];
Expand Down

0 comments on commit 12b9c13

Please sign in to comment.