Closed
Description
Laravel Version
12.9.0
PHP Version
8.2
Database Driver & Version
No response
Description
In line 85 of package mongodb/laravel-mongodb/src/Concerns/ManagesTransactions.php
i get this error:
Declaration of MongoDB\Laravel\Concerns\ManagesTransactions::transaction(Closure $callback, $attempts = 1, array $options = []): mixed must be compatible with Illuminate\Database\Connection::transaction(Closure $callback, $attempts = 1, ?Closure $onFailure = null)
This error occurs when upgrading Laravel from 12.8.* to 12.9.0 due to a change src/Illuminate/Database/Concerns/ManagesTransactions.php
This is PR with this problem: #55338
This error is critical because the connection to MongoDB doesn't work.
Steps To Reproduce
Upgrade to Laravel 12.9.0 with mongo connection
Metadata
Metadata
Assignees
Labels
No labels