Skip to content
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

Documentation for types tag uses Twig types in examples instead of PHP #4403

Open
wants to merge 1 commit into
base: 3.x
Choose a base branch
from

Conversation

drjayvee
Copy link
Contributor

Specifically, "bool" => "boolean" and "int" => "number".

This aligns the types documentation with templates.rst. See #4362

Thanks, @alexander-schranz!

Specifically, "bool" => "boolean" and "int" => "number".

This aligns the `types` documentation with templates.rst. See twigphp#4362

Thanks, @alexander-schranz!
@ruudk

This comment was marked as resolved.

@ruudk
Copy link
Contributor

ruudk commented Oct 21, 2024

The documentation is not up to date. PHPStan does properly understand number 🎉
I'll fix the docs.

See https://phpstan.org/r/24895f82-975a-4e08-b7b1-5da29d058ddd

@ruudk
Copy link
Contributor

ruudk commented Oct 21, 2024

Done:

@smnandre
Copy link
Contributor

Do you think it's worth it to update TypesTest.php and TypesTokenParser.php ?

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.

3 participants