Latte 3.1: "Positional argument after a named argument is deprecated" in templates

Open Beginner friendly
#1,337 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 4 days

@sasule is already working on this.

Since Nov 18, 2026.

  • #1338 by @sasule — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
php
Domain
backend

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, 528
  • src/templates/column_multi_action.latte: line 12
  • src/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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from contributte/datagrid

All issues in contributte/datagrid

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.