🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

Closure::bind does not rebind correctly #5987

Description

@mvorisek

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions