Skip to content

Commit f0ca25b

Browse files
committed
Update bug11384.php
1 parent 1d3746d commit f0ca25b

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

tests/PHPStan/Analyser/nsrt/bug11384.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

3-
declare(strict_types=1);
3+
namespace Bug11384;
44

55
use function PHPStan\Testing\assertType;
66

7-
define('VAL', 5);
8-
97
class Bar
108
{
119
public const VAL = 3;
@@ -15,9 +13,6 @@ class HelloWorld
1513
{
1614
public function sayHello(string $s): void
1715
{
18-
if (preg_match('{(' . VAL . ')}', $s, $m)) {
19-
assertType('array{string, numeric-string}', $m);
20-
}
2116
if (preg_match('{(' . Bar::VAL . ')}', $s, $m)) {
2217
assertType('array{string, numeric-string}', $m);
2318
}

0 commit comments

Comments
 (0)