Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Transaction state was not being cleared if rolled back failed #107

Merged
merged 2 commits into from
May 17, 2023

Conversation

taka-oyama
Copy link
Collaborator

NOTE: Needs to be backported to v4.7.x.

@taka-oyama taka-oyama added the bug Something isn't working label May 16, 2023
CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor

@zeriyoshi zeriyoshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
I would suggest adding the following suppression to phpstan.neon

        - message: "#^Parameter \\#1 \\$table of method Illuminate\\\\Database\\\\Query\\\\Builder\\:\\:from\\(\\) expects Closure\\|Illuminate\\\\Database\\\\Eloquent\\\\Builder\\|Illuminate\\\\Database\\\\Query\\\\Builder\\|string, Closure\\|Illuminate\\\\Contracts\\\\Database\\\\Query\\\\Expression\\|Illuminate\\\\Database\\\\Query\\\\Builder\\|string given\\.$#"
          count: 1
          path: src/Connection.php

@taka-oyama taka-oyama merged commit ea96af3 into master May 17, 2023
1 check failed
@taka-oyama taka-oyama deleted the fix/clear-transaction-on-rollback branch May 17, 2023 00:45
taka-oyama added a commit that referenced this pull request May 17, 2023
)

backported from v5.1.1.

# Conflicts:
#	CHANGELOG.md
#	src/Concerns/ManagesTransactions.php
#	tests/ConnectionTest.php
@taka-oyama
Copy link
Collaborator Author

backported to v4.7.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants