smarty-php / smarty-php/smarty
Object properties cannot be called directly after a method
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 2.3k
- Forks
- 709
- PR merge metrics
- No merged PRs in 30d
Description
<p>{{ hello()->total() }}</p>
hello()The method returns an object
Contributor guide
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
No file or test is named. Reproduce the Smarty template expression {{ hello()->total() }} with hello() returning an object, then trace the template expression parser and evaluator to identify where the chained call is rejected. Done means the expression renders the returned object's total() value without breaking existing method-call syntax.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100