ariddlestone / ariddlestone/phpstan-cakephp2
Add extension for FlashComponent
- Dominant language
- PHP
- Stars
- 2
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
`FlashComponent::_call($name, $args)` renders the message using `app/View/Element/Flash/$name.ctp`.
For example, `$controller->Flash->success('My message')` would render the message using `app/View/Element/success.ctp`.
We should check for the template's existence, and then provide the correct types etc.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at FlashComponent::_call($name, $args) and trace how app/View/Element/Flash/$name.ctp is resolved. Check how the extension should handle an existing or missing template and what “correct types” means for the call; done when the FlashComponent extension models that behavior consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100