2.4 => 3.0

Verze:

27. 06. 2025

Zodpovědná osoba:

Dominik Šlechta

Update checklist

  • add args to new packages in config (e.g. Gopay, Translation)

  • in the namespace just the name of the parent folder is enough (it doesn't have to be the whole path)

  • $iterations are deprecated => replace with $iterator->counter0
  • Deprecated args notation in filters => use , instead of : (create regex in future)
  • Add types (args and return)
  • Move args with default values to the end
  • Fix whatever the code-checker throws (php “C:\www\code-checker” --fix)
  • Rewrite arrays in fetchAssoc() as strings with separator. It is not possible to pass arrays now
  • getHeader, getQuery and getPost no longer have arg $default (must use getHeader() ?? $default)
  • The filter loader must be called via addFilterLoader() (instead of the universal addFilter())
    • => example: $this->template->getLatte()->addFilterLoader([new Helpers, 'loader']);
  • In Helpers.php the loader method doesn't work and it doesn't pass args to the filter (just copy it from Demo)
  • The new version is missing parent constructors (in Control.php)
  • Nette\Security\Passwords is an object => doesn't have static methods
  • Update form using npm install nette-forms
  • in PHP, HTML elements are added using the addHtml() method (instead of add())
  • the '*' argument in the count method is no longer used to count all rows (nothing is passed)