-
Type:
Bug
-
Resolution: Gone away
-
Priority:
Blocker - P1
-
None
-
Affects Version/s: laravel-5.3.1
-
Component/s: Laravel
-
None
-
None
-
PHP Drivers
-
None
-
None
-
None
-
None
-
None
-
None
Issue reported in Laravel project: https://github.com/laravel/framework/issues/55421
PR introducing the issue: https://github.com/laravel/framework/pull/55338
PHP Fatal 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) in /home/runner/work/laravel-mongodb/laravel-mongodb/src/Concerns/ManagesTransactions.php on line 85In ManagesTransactions.php line 85: Declaration of MongoDB\Laravel\Concerns\ManagesTransactions::transaction(Cl osure $callback, $attempts = 1, array $options = []): mixed must be compati ble with Illuminate\Database\Connection::transaction(Closure $callback, $at tempts = 1, ?Closure $onFailure = null)