Skip to content

Commit 5c0cccc

Browse files
committed
Fixes
1 parent 780a54c commit 5c0cccc

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

tests/PHPStan/Analyser/data/deducted-types.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use TypesNamespaceFunctions;
66

7-
class Foo
7+
final class Foo
88
{
99

1010
const INTEGER_CONSTANT = 1;

tests/PHPStan/Analyser/data/union-intersection.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
class WithFoo
66
{
77

8+
/** @var 1 */
89
const FOO_CONSTANT = 1;
910

1011
/** @var Foo */
@@ -25,7 +26,10 @@ public static function doStaticFoo(): Foo
2526
class WithFooAndBar
2627
{
2728

29+
/** @var 1 */
2830
const FOO_CONSTANT = 1;
31+
32+
/** @var 1 */
2933
const BAR_CONSTANT = 1;
3034

3135
/** @var AnotherFoo */
@@ -59,7 +63,10 @@ public static function doStaticBar(): Bar
5963
interface WithFooAndBarInterface
6064
{
6165

66+
/** @var 1 */
6267
const FOO_CONSTANT = 1;
68+
69+
/** @var 1 */
6370
const BAR_CONSTANT = 1;
6471

6572
public function doFoo(): AnotherFoo;
@@ -80,6 +87,7 @@ interface SomeInterface
8087
class Dolor
8188
{
8289

90+
/** @var array{1, 2, 3} */
8391
const PARENT_CONSTANT = [1, 2, 3];
8492

8593
}

0 commit comments

Comments
 (0)