Skip to content

getting just the body of a method #1503

@tacman

Description

@tacman

There's an inconsistency between the BetterReflection start line and the native PHP one.

    #[PreloadUrl('pages', ['_locale' => 'en_US'])]
    #[PreloadUrl('pages', ['_locale' => 'fr_FR'])]
    #[Route('/ar-vr', name: 'app_feature_ar_vr', methods: [Request::METHOD_GET])]
    public function __invoke(): Response
    {
        return $this->render('features/ar_vr.html.twig');
    }

BetterReflection returns the start line with the attributes, where the native Reflection return only the actual body. Is there a way to get just the body? I'm finding myself calling both in order to get the body, and I'm thinking I must be missing something obvious.

Thx.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions