Skip to content

Remove deprecated doctrine/annotations dependency #653

@eual8

Description

@eual8

The package doctrine/annotations is marked as abandoned by Doctrine team, and Composer displays a warning message every time dependencies are updated:

Current Behavior
l5-swagger v9.0.1 still requires doctrine/annotations ^1.0 || ^2.0
This dependency appears to be inherited from zircote/swagger-php
The warning appears on every composer install and composer update
Expected Behavior
The package should not depend on abandoned packages. Since doctrine/annotations is deprecated, it should be replaced with PHP 8 attributes or removed entirely if no longer needed.

Environment
l5-swagger version: 9.0.1
zircote/swagger-php version: 5.5.1
PHP version: 8.2+
Laravel version: 12.0
Additional Context
According to the Doctrine team, doctrine/annotations is abandoned because PHP 8+ native attributes should be used instead. Many modern packages have already migrated away from this dependency.

Possible Solutions:
Update zircote/swagger-php to a version that doesn't require doctrine/annotations (if available)
Remove the direct dependency on doctrine/annotations if it's not actually being used
Migrate to PHP 8 attributes if annotations are still needed
This would help clean up dependency warnings and follow modern PHP best practices.

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