Skip to content

Add phpdoc return type to v6 codebase to prepare v7 typehint #47551

Closed
@94noni

Description

@94noni

Description

Based on this comment #47480 (comment) on a small PR
Friendly ping @stof @fabpot as originals reviewers


Questions:

  • should it be done massively on the whole codebase to avoid conflicts? or per components?
  • can it be automatise in some way?
  • can it be prevented to not have new code without on v6 branches? new code or ported code from v4/v5?

Thank you

Example

Symfony v4/5/6

     /**
      * @return string
      */
     public function get()
     {}

Symfony v7

     public function get(): string
     {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions