Skip to content

Deprecated trigger_error Usage in Generated autoload.php for PHP 8.4 #12331

@meglio

Description

@meglio

The autoload.php file, automatically generated by Composer, includes a PHP version check that utilizes the trigger_error($err, E_USER_ERROR) function. As of PHP 8.4.0, passing E_USER_ERROR to trigger_error is deprecated. The PHP manual recommends throwing an exception or calling exit() instead.

Composer version 2.8.5 2025-01-21 15:23:40
PHP version 8.4.3 (/opt/homebrew/Cellar/php/8.4.3/bin/php)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions