konti1337 Posted September 8, 2018 Share Posted September 8, 2018 Salut, am eroarea data : PHP Parse error: syntax error, unexpected '?' la linia : protected function finishSave(array $options) { $this->fireModelEvent('saved', false); if ($this->isDirty() && ($options['touch'] ?? true)) { $this->touchOwners(); } $this->syncOriginal(); } Link to comment Share on other sites More sharing options...
konti1337 Posted September 9, 2018 Author Share Posted September 9, 2018 Cineva ? Link to comment Share on other sites More sharing options...
MrTuNNe.Info Posted September 9, 2018 Share Posted September 9, 2018 Inlocuieste if ($this->isDirty() && ($options['touch'] ?? true)) { cu if ($this->isDirty() && $options['touch'] == true) { Link to comment Share on other sites More sharing options...
konti1337 Posted September 10, 2018 Author Share Posted September 10, 2018 La 09.09.2018 la 12:30, MrTuNNe.Info a spus: Inlocuieste if ($this->isDirty() && ($options['touch'] ?? true)) { cu if ($this->isDirty() && $options['touch'] == true) { Ok, o sa incerc, Link to comment Share on other sites More sharing options...
konti1337 Posted September 10, 2018 Author Share Posted September 10, 2018 Acum am alta problema : Parse error: syntax error, unexpected '?' protected function getKeyForSaveQuery() { return $this->original[$this->getKeyName()] ?? $this->getKey(); } Link to comment Share on other sites More sharing options...
Skyled Posted January 23, 2023 Share Posted January 23, 2023 [CLOSED] Topicul a fost inchis. Pentru mai multe informații contactați moderatorul responsabil. Link to comment Share on other sites More sharing options...
Recommended Posts