Skip to content

Fix the type of the connection received by the Connection::transactional() callback - #791

Open
mlocati wants to merge 1 commit into
phpstan:2.0.xfrom
mlocati-forks:transactional-callable-static
Open

Fix the type of the connection received by the Connection::transactional() callback#791
mlocati wants to merge 1 commit into
phpstan:2.0.xfrom
mlocati-forks:transactional-callable-static

Conversation

@mlocati

@mlocati mlocati commented Sep 10, 2026

Copy link
Copy Markdown

Connection::transactional() calls the callback with $this, so the callback receives the actual connection instance: a closure typed with a subclass of Connection must be accepted when transactional() is called on that subclass.

…nal() callback

Connection::transactional() calls the callback with $this, so the callback
receives the actual connection instance: a closure typed with a subclass of
Connection must be accepted when transactional() is called on that subclass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant