Skip to content

Commit 4656f2f

Browse files
Refactor
1 parent 514d78b commit 4656f2f

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

.psalm/baseline.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,6 @@
286286
<code>Assert::isWritable(...func_get_args())</code>
287287
</TooManyArguments>
288288
</file>
289-
<file src="src/Framework/Attributes/TestWith.php">
290-
<MissingParamType occurrences="1">
291-
<code>$data</code>
292-
</MissingParamType>
293-
</file>
294289
<file src="src/Framework/Constraint/Cardinality/Count.php">
295290
<MissingParamType occurrences="1">
296291
<code>$other</code>

src/Framework/Attributes/TestWith.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@
1515
class TestWith
1616
{
1717
/**
18-
* @var array
18+
* @var string
1919
*/
20-
private $data;
20+
private $json;
2121

22-
public function __construct(...$data)
22+
public function __construct(string $json)
2323
{
24-
$this->data = $data;
24+
$this->json = $json;
2525
}
2626

27-
public function data(): array
27+
public function json(): string
2828
{
29-
return $this->data;
29+
return $this->json;
3030
}
3131
}

0 commit comments

Comments
 (0)