Skip to content

[Workflow] Add phpdoc about exception #57519

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 25, 2024
Merged

Conversation

VincentLanglet
Copy link
Contributor

Q A
Branch? 7.2
Bug fix? no
New feature? no
Deprecations? no
Issues Fix #...
License MIT

I recently changed a can call to a buildTransitionBlockerList and got many exceptions.

When looking at the interface we could believe the behavior of these method are similar with

  • can returning true/false
  • buildTransitionBlockerList returning a list empty or not

But it's not true.
When we try to call buildTransitionBlockerList with a not defined transition,

  • can return false
  • buildTransitionBlockerList throw an exception

I think this should at least be mentioned in the PHPdoc.
Dunno if this need to wait 7.2 or can be done on previous versions.

cc @lyrixx

Copy link
Member

@lyrixx lyrixx left a comment

Choose a reason for hiding this comment

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

👍🏼 Thanks

@fabpot
Copy link
Member

fabpot commented Jun 25, 2024

Thank you @VincentLanglet.

@fabpot fabpot merged commit 645f868 into symfony:7.2 Jun 25, 2024
5 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants