framework: Exception::__construct(): Argument #2 ($code) must be of type int, string given at .../Illuminate/Database/Concerns/ManagesTransactions.php:94)

  • Laravel Version: 9.11.0
  • PHP Version: 8.0.18
  • Database Driver & Version:

Description:

After updating to v9.11.0, we are conveniently seeing this error in our log:

Exception::__construct(): Argument #2 ($code) must be of type int, string given at .../Illuminate/Database/Concerns/ManagesTransactions.php:94)

It seems to be related to this PR https://github.com/laravel/framework/pull/42129.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (15 by maintainers)

Most upvoted comments

Thank you @driesvints for your hard work and all Laravel team.

Laravel changed my life, whenever I have the time it is my pleasure to give back something to the project =)

I doubt this is an issue with Laravel itself for the reasons @rodrigopedra explained. Maybe if @rodrigopedra’s PR gets merged you can see what the actual exception is.

Thanks for the help always @rodrigopedra, we appreciate it 👍