Skip to content

symfony/symfony

6.4
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

…rry684)

This PR was squashed before being merged into the 6.4 branch.

Discussion
----------

[Routing] Extend old Annotations from new Attributes

If the base class is missing PHPStan fails to recognize the aliasing correctly.

| Q             | A
| ------------- | ---
| Branch?       | 6.4
| Bug fix?      | sort of
| New feature?  | no
| Deprecations? | no
| License       | MIT

Due to a shortcoming in PHPStan it does not pick up the previous aliasing correctly (ref. https://phpstan.org/r/2c7a9166-e8e1-42e5-8448-54c7d814e7d9).

This will cause projects to start failing their static analysis when they upgrade to 6.4. Explicitly extending the new attribute in the Attribute namespace has no runtime impact and shuts up PHPStan.

Commits
-------

2d9eb7b [Routing] Extend old Annotations from new Attributes
6c91073

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
September 6, 2018 16:22
January 24, 2023 15:02
October 15, 2023 22:20
April 21, 2021 11:10
November 9, 2023 22:20

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Symfony is used by thousands of web applications and most of the popular PHP projects.

Installation

Sponsor

Symfony 6.4 is backed by

As the creator of Symfony, SensioLabs supports companies using Symfony, with an offering encompassing consultancy, expertise, services, training, and technical assistance to ensure the success of web application development projects.

Private Packagist.com is a fast, reliable, and secure Composer repository for your private packages. It mirrors all your open-source dependencies for better availability and monitors them for security vulnerabilities.

Help Symfony by sponsoring its development!

Documentation

Community

Contributing

Symfony is an Open Source, community-driven project with thousands of contributors. Join them contributing code or contributing documentation.

Security Issues

If you discover a security vulnerability within Symfony, please follow our disclosure procedure.

About Us

Symfony development is led by the Symfony Core Team and supported by Symfony contributors.