Skip to content

doesnt work in Laravel 12.9.1 #3359

Closed
Closed
@eusebiosotysolar

Description

@eusebiosotysolar

Hi,
I report this error there too: laravel/framework#55421

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: laravel/framework#55338

This error is critical because the connection to MongoDB doesn't work.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions