You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// @phpstan-ignore-next-line π Function TH\Maybe\Tests\TypeHinting\test_is_some() throws checked exception RuntimeException but it's missing from the PHPDoc @throws tag.
// @phpstan-ignore-next-line π― Function test_instanceof_none() throws checked exception RuntimeException but it's missing from the PHPDoc @throws tag.
// @phpstan-ignore-next-line π Function TH\Maybe\Tests\TypeHinting\test_is_none() throws checked exception RuntimeException but it's missing from the PHPDoc @throws tag.
68
62
return$option->unwrap();
69
63
}
@@ -74,7 +68,7 @@ function test_is_none(Option $option): int
// @phpstan-ignore-next-line π Function TH\Maybe\Tests\TypeHinting\test_instanceof_some() throws checked exception RuntimeException but it's missing from the PHPDoc @throws tag.
79
73
return$option->unwrap();
80
74
}
@@ -90,7 +84,7 @@ function test_instanceof_some(Option $option): int
// @phpstan-ignore-next-line π― Function test_instanceof_none() throws checked exception RuntimeException but it's missing from the PHPDoc @throws tag.
95
89
return$option->unwrap();
96
90
}
@@ -102,14 +96,15 @@ function test_instanceof_none(Option $option): int
102
96
103
97
functiontest_call_a_function_with_none(): void
104
98
{
99
+
/** @psalm-suppress InvalidArgument π Argument 1 of TH\Maybe\Tests\TypeHinting\option\test_is_none expects TH\Maybe\Option<int>, but TH\Maybe\Option\None provided */
105
100
here\test_is_none(Option\none());
106
101
}
107
102
108
103
functiontest_call_a_function_with_some(): void
109
104
{
110
105
here\test_is_none(Option\some(1));
111
106
112
-
/** @psalm-suppress InvalidArgument π― */
107
+
/** @psalm-suppress InvalidScalarArgument π― */
113
108
// @phpstan-ignore-next-line π― Parameter #1 $option of function TH\Maybe\Tests\TypeHinting\option\test_is_none expects TH\Maybe\Option<int>, TH\Maybe\Option\Some<string> given.
0 commit comments