Skip to content

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Sep 3, 2025

Q A
Branch? 7.3
Bug fix? yes
New feature? no
Deprecations? no
Issues -
License MIT

Per @stof review at #57948 (review)

Best reviewed ignoring whitespaces.

@nicolas-grekas nicolas-grekas merged commit 1778811 into symfony:7.3 Sep 3, 2025
9 of 11 checks passed
}
if ($resource instanceof ClassExistenceResource) {
$class = $resource->getResource();
if (!$resource instanceof ClassExistenceResource) {
Copy link
Member

Choose a reason for hiding this comment

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

should we extract the check of ClassExistenceResource being in vendors into a private method instead of this early check of any other type ? It might reduce the risk of mistakes when wanting to optimize other Resource implementations in the future.

Copy link
Member Author

Choose a reason for hiding this comment

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

let's see in the future :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment