Skip to content

Conversation

@soyuka
Copy link
Member

@soyuka soyuka commented Mar 31, 2022

fixes #4694

@soyuka soyuka force-pushed the main branch 7 times, most recently from 81e3dc1 to c5ed986 Compare April 4, 2022 17:17
class_exists(\ApiPlatform\Action\EntrypointAction::class);

if (false) {
class EntrypointAction extends \ApiPlatform\Action\EntrypointAction
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as mentioned in the internal discussion, since ApiPlatform\Action\EntrypointAction is final, the deprecated alias ( ApiPlatform\Core\Action\EntrypointAction ) needs to also be declared final so static analysis tools would be able to warn users when they try to extend from it. ( same applies for all other final classes )

Suggested change
class EntrypointAction extends \ApiPlatform\Action\EntrypointAction
final class EntrypointAction extends \ApiPlatform\Action\EntrypointAction

@soyuka soyuka merged commit 733e17a into api-platform:main Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BC Break] 2.7 has undocumented bc breaks cause of namespace changes (e.g. by removal of 'Doctrine\Bridge')

2 participants