Determine which types to support for `types` tag
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 8.4k
- Forks
- 1.3k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 37
Description
Following discussions in #4165, we want to determine which types (if any), Twig wants to suggest or even mandate extensions support.
There seem to be four options:
- Remain completely agnostic
- Use PHP's types:
string,bool, etc - Use more generic types such as
stringable,iterable - Use PHPStan/Psalm types
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the discussions in #4165 and compare the four proposed approaches: no type guidance, PHP types, generic types, or PHPStan/Psalm types. The issue is complete when Twig’s supported or recommended types for the types tag are decided and the resulting extension guidance or behavior is defined.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100