Skip to content

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

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy