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)
$iterationsare 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,getQueryandgetPostno longer have arg$default(must usegetHeader() ?? $default)- The filter loader must be called via
addFilterLoader()(instead of the universaladdFilter())- => example:
$this->template->getLatte()->addFilterLoader([new Helpers, 'loader']);
- => example:
- 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\Passwordsis 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 ofadd()) - the '
*' argument in the count method is no longer used to count all rows (nothing is passed)