PHP Deprecated: Return type of Nette\Utils\ArrayHash::offsetGet($key)
- miro_r
- Člen | 22
Zdravím,
upgradoval som Ubuntu na 22.04 a teda hodilo aj PHP8.1.
V error.log, ktorý mal 20GB a zablokoval celý VM, mám okrem deprecated hlášok formátu dátumu %d.%m.%Y, čo som opravil na d.m.Y, ešte opakujúce sa, na ktoré som nenašiel riešenie:
PHP Deprecated: Return type of Nette\Database\Table\Selection::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/finreg/vendor/nette/database/src/Database/Table/Selection.php:997
PHP Deprecated: Return type of Nette\Utils\ArrayHash::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/finreg/vendor/nette/utils/src/Utils/ArrayHash.php:73
PHP Deprecated: Return type of Nette\Database\Table\ActiveRow::offsetGet($column) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/finreg/vendor/nette/database/src/Database/Table/ActiveRow.php:232
Nemá niekto typ, čo s tým ?
Mám takéto verzie:
latte/latte v2.10.3 ☕ Latte: the intuitive and fast template engine for those
who want the most secure PHP sites. Introduces context-se…
nette/application v3.1.2 🏆 Nette Application: a full-stack component-based
MVC kernel for PHP that helps you write powerful and modern web …
nette/bootstrap v3.1.1 🅱 Nette Bootstrap: the simple way to configure and
bootstrap your Nette application.
nette/caching v3.1.1 ⏱ Nette Caching: library with easy-to-use API and many
cache backends.
nette/component-model v3.0.1 ⚛ Nette Component Model
nette/database v3.1.2 💾 Nette Database: layer with a familiar PDO-like API
but much more powerful. Building queries, advanced joins, dri…
nette/di v3.0.8 💎 Nette Dependency Injection Container: Flexible, compiled
and full-featured DIC with perfectly usable autowiring …
nette/finder v2.5.2 🔍 Nette Finder: find files and directories with an
intuitive API.
nette/forms v3.1.3 📝 Nette Forms: generating, validating and processing
secure forms in PHP. Handy API, fully customizable, server & …
nette/http v3.1.1 🌐 Nette Http: abstraction for HTTP request, response and
session. Provides careful data sanitization and utility f…
nette/mail v3.1.6 📧 Nette Mail: handy email creation and transfer library for
PHP with both text and MIME-compliant support.
nette/neon v3.2.2 🍸 Nette NEON: encodes and decodes NEON file format.
nette/php-generator v3.5.3 🐘 Nette PHP Generator: generates neat PHP code for
you. Supports new PHP 7.4 features.
nette/robot-loader v3.4.0 🍀 Nette RobotLoader: high performance and
comfortable autoloader that will search and autoload classes within your…
nette/routing v3.0.2 Nette Routing: two-ways URL conversion
nette/schema v1.2.1 📐 Nette Schema: validating data structures against a
given Schema.
nette/security v3.1.3 🔑 Nette Security: provides authentication,
authorization and a role-based access control management via ACL (Acces…
nette/tester v2.4.0 Nette Tester: enjoyable unit testing in PHP with code
coverage reporter. 🍏🍏🍎🍏
nette/utils v3.2.2 🛠 Nette Utils: lightweight utilities for string &
array manipulation, image handling, safe JSON encoding/decoding…
tracy/tracy v2.8.4 😎 Tracy: the addictive tool to ease debugging PHP code for
cool developers. Friendly design, logging, profiler, a…
twbs/bootstrap v5.0.0 The most popular front-end framework for developing
responsive, mobile first projects on the web.
- miro_r
- Člen | 22
Updatol som (chvalabohu na skúšobnom serveri najprv) a už nejde ani načítať stránka, prosím čo s tým ?
error: For dynamic filters, use the addFilterLoader() where you pass a callback as a parameter that returns the filter callback.
File: …\htdocs\finreg\vendor\latte\latte\src\Latte\Engine.php:306
296: }
297:
298:
299: /**
300: * Registers run-time filter.
301: * @return static
302: */
303: public function addFilter(?string $name, callable $callback)
304: {
305: if ($name === null) {
306: trigger_error(‚For dynamic filters, use the addFilterLoader() where you
pass a callback as a parameter that returns the filter callback.‘,
E_USER_DEPRECATED);
307: } elseif (!preg_match(‚#^[a-z]\w*$#iD‘, $name)) {
308: throw new \LogicException(„Invalid filter name ‚$name‘.“);
309: }
310:
…\htdocs\finreg\vendor\latte\latte\src\Latte\Engine.php:306
…\temp\cache\nette.configurator\Container_2291fce7f3.php:716
…\application\src\Bridges\ApplicationLatte\TemplateFactory.php:70
…\nette\application\src\Application\UI\Presenter.php:603
593:
594:
595: /**
596: * @param string $class
597: */
598: protected function createTemplate(/*string $class = null*/): Template
599: {
600: $class = func_num_args() // back compatibility
601: ? func_get_arg(0)
602: : $this->formatTemplateClass();
603: return $this->getTemplateFactory()->createTemplate($this,
$class);
604: }
605:
606:
607: public function formatTemplateClass(): ?string
$control
App\Presenters\HomepagePresenter
$class
‚Nette\Bridges\ApplicationLatte\DefaultTemplate‘
…\vendor\nette\application\src\Application\UI\Control.php:48
…\htdocs\finreg\vendor\nette\utils\src\SmartObject.php:80
…\htdocs\finreg\app\Presenters\HomepagePresenter.php:40
inner-code
App\Presenters\HomepagePresenter::renderDefault ()
…\nette\application\src\Application\UI\Component.php:120
…\nette\application\src\Application\UI\Presenter.php:253
…\vendor\nette\application\src\Application\Application.php:163
…\vendor\nette\application\src\Application\Application.php:90
C:\xampp\htdocs\finreg\www\index.php:14
name
null
callback
array
0 ⇒ ‚App\Filters‘
1 ⇒ ‚loader‘
ErrorException
context:
array
skippable: true
severity: 16384
message: ‚For dynamic filters, use the addFilterLoader() where you pass a
callback as a parameter that returns the filter callback.‘
string: ''
code: 0
file: ‚C:\xampp\htdocs\finreg\vendor\latte\latte\src\Latte\Engine.php‘
line: 306
trace:
array
previous: null
Requests
array
0 =>
Nette\Application\Request
Presenter
App\Presenters\HomepagePresenter
- David Grudl
- Nette Core | 8218
zavolej ještě tohle ať to neaktualizuje Latte na přechodovou verzi:
composer require latte/latte "~2.10.3"