Skip to content

Commit 9d450a4

Browse files
herndlmondrejmirtes
authored andcommitted
Add regression test
1 parent d1c78f6 commit 9d450a4

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

tests/Type/WebMozartAssert/ImpossibleCheckTypeMethodCallRuleTest.php

+5
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ public function testExtension(): void
4747
]);
4848
}
4949

50+
public function testBug33(): void
51+
{
52+
$this->analyse([__DIR__ . '/data/bug-33.php'], []);
53+
}
54+
5055
public function testBug68(): void
5156
{
5257
$this->analyse([__DIR__ . '/data/bug-68.php'], []);
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace WebmozartAssertBug33;
6+
7+
use Webmozart\Assert\Assert;
8+
9+
class Bug33
10+
{
11+
12+
public function foo(?string $bar)
13+
{
14+
Assert::nullOrStringNotEmpty($bar);
15+
}
16+
17+
}

0 commit comments

Comments
 (0)