Bug report
Code snippet that reproduces the problem
stan demo: https://phpstan.org/r/9ad7174a-6346-47dd-ad4f-48e2e7503e16
real demo: https://3v4l.org/d5mGf
Expected output
-actual
+expected
Line Error
27 Dumped type: 'B'
28 Dumped type: 'b'
29 Dumped type: 'b'
31 Dumped type: class-string<static(C)>
-32 Dumped type: 'b'
+32 Dumped type: 'c'
33 Dumped type: 'c'
-35 Dumped type: 'B'
+35 Dumped type: 'A'
-36 Dumped type: 'b'
+36 Dumped type: 'a'
-37 Dumped type: 'b'
+37 Dumped type: 'a'
-39 Dumped type: 'b'
+39 Dumped type: 'c'
40 Dumped type: 'b'
Bug report
Code snippet that reproduces the problem
stan demo: https://phpstan.org/r/9ad7174a-6346-47dd-ad4f-48e2e7503e16
real demo: https://3v4l.org/d5mGf
Expected output