PHP - Recoverable Error Object of class class@anonymous could not be converted to string

PHP - Recoverable Error Object of class class@anonymous could not be converted to string

Dobrý den,

poradí prosím někdo co s chybou PHP - Recoverable Error Object of class class@anonymous could not be converted to string?


24: public function __construct(Settings $modelSettings)
25: {
26: $this->$modelSettings = $modelSettings;
27: }


Já jsem asi slepej.

ODPOVĚĎ


Dobrý den,

chybu PHP - Recoverable Error Object of class class@anonymous could not be converted to string Vám způsobuje znak $ v $modelSettings, má to být takto:


24: public function __construct(Settings $modelSettings)
25: {
26: $this->modelSettings = $modelSettings;
27: }

Související obsah

programovani

nette

php

error

Komentáře

Vaše reakce na PHP - Recoverable Error Object of class class@anonymous could not be converted to string

Reference

Podívejte se na naše reference

Prohlédnout

Aplikace

Podívejte se na naše aplikace

Prohlédnout

Co umíme?

Podívejte se co umíme

Prohlédnout

Co umíme?

Vytváříme sofistikované aplikace pro náročné

Od webových aplikací přes android až po převodové můstky či složité informační systémy.

Podívejte se k nám

Máte ještě čas? Podívejte se na další rubriky

Tento web používá soubory cookie. Dalším procházením tohoto webu vyjadřujete souhlas s jejich používáním.. Více informací zde.