Skip to content

Add type hints #2971

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

Merged
merged 1 commit into from
Apr 27, 2019
Merged

Add type hints #2971

merged 1 commit into from
Apr 27, 2019

Conversation

fabpot
Copy link
Contributor

@fabpot fabpot commented Apr 23, 2019

No description provided.

@fabpot fabpot force-pushed the type-hints branch 3 times, most recently from 3b880c6 to 388c629 Compare April 23, 2019 17:35
{
return [];
}

public function getNodeVisitors()
public function getNodeVisitors(): array
Copy link
Member

Choose a reason for hiding this comment

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

this will affect all extension authors, while they could already add it in older versions.

@nicolas-grekas is there any way to make Symfony's DebugClassLoader warn about future return types, similar to how you added support for future arguments ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@fabpot fabpot force-pushed the type-hints branch 6 times, most recently from cda3ac2 to 3c1d9e6 Compare April 26, 2019 09:58
@fabpot fabpot changed the title [WIP] Add type hints Add type hints Apr 27, 2019
@fabpot fabpot merged commit 54cec4e into twigphp:3.x Apr 27, 2019
fabpot added a commit that referenced this pull request Apr 27, 2019
This PR was merged into the 3.x branch.

Discussion
----------

[WIP] Add type hints

Commits
-------

54cec4e added type hints
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
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