Skip to content

Conflict with lang function #55

Open
@mbernet

Description

@mbernet

I'm using the package onecentlin/laravel-adminer and I have a conflict with this package.

FatalError PHP 8.2.3 9.52.6 Cannot redeclare lang() (previously declared in /var/www/html/vendor/thiagocordeiro/laravel-translator/src/Framework/helpers.php:9)

It seems that the laravel-translator package loads first and defines the function lang. Then, the package laravel-adminer tries to define the same function and as it loads after, it causes a fatal error.

I think that this package should check trough the configuration if in the functions section, the function lang is in the array of allowed functions. So, besides checking if function('lang') exists it should check if this function should be defined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions