Cannot use ‚Object‘ as class name as it is reserved
- David Matějka
- Moderator | 6445
asi pouzivas knihovny, ktere stale pouzivaji Nette\Object
, takze
je aktualizuj :)
- Petr Parolek
- Člen | 455
plus ve svém kodu nahraď používání třídy Nette Object za traitu Nette SmartObject
- petrf
- Člen | 15
Tentýž problém, čerstvě staženo: composer create-project
nette/web-project
Fatal error: Cannot use ‚Object‘ as class name as it is reserved in
C:\xampp\htdocs\relaks\web-project\vendor\nette\utils\src\Utils\Object.php on
line 52
Pořešil jsem tak, že jsem aktualizoval composer.json
{
"name": "nette/web-project",
"description": "Nette: Standard Web Project",
"type": "project",
"license": ["MIT", "BSD-3-Clause", "GPL-2.0", "GPL-3.0"],
"require": {
"php": ">= 5.3",
"nette/application": "^2.4.0",
"nette/bootstrap": "^2.4",
"nette/caching": "^2.4",
"nette/database": "^2.4",
"nette/di": "^2.4",
"nette/finder": "^2.4",
"nette/forms": "^2.4",
"nette/http": "^2.4",
"nette/mail": "^2.4",
"nette/robot-loader": "^2.4",
"nette/safe-stream": "^2.3",
"nette/security": "^2.4",
"nette/utils": "^2.4",
"latte/latte": "^2.4",
"tracy/tracy": "^2.4"
},
"require-dev": {
"nette/tester": "^1.6"
}
}
Ale vyskočila jiná chyba:
Replace deprecated Nette\Object with trait Nette\SmartObject in
C:\xampp\htdocs\relaks\web-project\app\presenters\ErrorPresenter.php:10
Editoval petrf (20. 11. 2018 22:10)