Latte 3.1: "Positional argument after a named argument is deprecated" in templates
Maintainers usually reply within 4 days
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Read the affected Latte templates: src/templates/datagrid.latte, src/templates/column_multi_action.latte, and src/templates/datagrid_tree.latte. The issue identifies each location and shows the deprecated include argument order; reproduce by rendering a datagrid with PHP 8.5, Latte 3.1.9, Tracy debug mode, and a clean Latte cache. Done means those templates compile without the deprecation.
Written by the indexing model from the issue text.
Description
With Latte 3.1, compiling the datagrid templates triggers E_USER_DEPRECATED:
Positional argument after a named argument is deprecated (on line 302 at column 63)
With Tracy in debug mode, this turns into an error page as soon as the template is compiled.
Affected (current master, also v7.2.0):
src/templates/datagrid.latte: lines 302, 528src/templates/column_multi_action.latte: line 12src/templates/datagrid_tree.latte: lines 45, 78, 104, 124
All of them place (expand) after a named argument:
{include $action->getTemplate(), item => $item, (expand) $action->getTemplateVariables(), row => $row}
To reproduce: PHP 8.5, Latte 3.1.9, Tracy in debug mode, render any datagrid with a clean Latte cache.
- Dominant language
- PHP
- Stars
- 297
- Forks
- 214
- Avg merge
- 3d 23h
- Merged PRs (30d)
- 4
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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.
More from contributte/datagrid
-
Item - detail bug when grid has parent componentPossibly taken @radimvaculik claimed this 109 days ago. OpenT: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
contributte/datagrid#1299 ·
Maintainers usually reply within 4 days
-
Bug? Datagrid TreeView not adding classes on content rowsPossibly taken @radimvaculik claimed this 142 days ago. OpenT: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
contributte/datagrid#1290 · 2 comments ·
Maintainers usually reply within 4 days
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
contributte/datagrid#1335 ·
Maintainers usually reply within 4 days
-
SortableJS is not reinitialised when the grid is redrawnPossibly taken @radimvaculik claimed this 72 days ago. OpenT: Bug
Difficulty 4/5 3-5 days Newbie friendliness 55/100
contributte/datagrid#1308 ·
Maintainers usually reply within 4 days
-
Bug: Missing reset filter buttonPossibly taken @radimvaculik claimed this 84 days ago. OpenT: Bug
Difficulty 3/5 1-2 days Newbie friendliness 65/100
contributte/datagrid#1306 ·
Maintainers usually reply within 4 days
All issues in contributte/datagrid
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
mailcow/mailcow-dockerized#7668 · 5 comments · 2 reactions ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
lara-zeus/spatie-translatable#80 ·
Maintainers usually reply within 1 day
-
small
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
uiowa/uiowa#10296 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
asyncapi/modelina#2709 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
My-Little-Forum/mylittleforum#937 ·