Skip to content

Remove useless PhpDoc comments and minor improvements #639

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

Closed
wants to merge 2 commits into from
Closed

Remove useless PhpDoc comments and minor improvements #639

wants to merge 2 commits into from

Conversation

yceruto
Copy link
Member

@yceruto yceruto commented Sep 4, 2017

  • Remove useless PhpDocs comments.
  • Improving Twig locales() function.

@javiereguiluz
Copy link
Member

@20uf I think I understand your downvote ... but don't be afraid because this won't break PHPStorm autocompletion. Most of these annotations are indeed useless because PHPStorm already can infer their types (through the constructor or other assignments). There's at least one string annotation that we'll loose, but string typehint is not very useful anyway.

Moreover, we now use PHP 7.1, so we can typehint everything and remove all PHPdoc.

@javiereguiluz
Copy link
Member

Thank you @yceruto.

@yceruto yceruto deleted the minor_fixes branch September 6, 2017 10:42
@20uf
Copy link

20uf commented Sep 6, 2017

The typehint does not completely replace the annotations and the strong typing is not fully respected, for example the type of return is not specified.

javiereguiluz added a commit that referenced this pull request Sep 7, 2017
This PR was squashed before being merged into the master branch (closes #645).

Discussion
----------

Add scalar typehints/return types

Fixes #639 (comment)

Commits
-------

5e93c07 Add scalar typehints/return types
sayjun0505 added a commit to sayjun0505/sym_proj that referenced this pull request Apr 16, 2023
This PR was squashed before being merged into the master branch (closes #645).

Discussion
----------

Add scalar typehints/return types

Fixes symfony/demo#639 (comment)

Commits
-------

5e93c07 Add scalar typehints/return types
spider-yamet added a commit to spider-yamet/sym_proj that referenced this pull request Apr 16, 2023
This PR was squashed before being merged into the master branch (closes #645).

Discussion
----------

Add scalar typehints/return types

Fixes symfony/demo#639 (comment)

Commits
-------

5e93c07 Add scalar typehints/return types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants