Open mbodon opened 1 year ago
gibt’s da eine Lösung?
Ja, einfach einen PR einreichen mit der Lösung. Beschreib' das Problem notfalls Github Copilot.
Du musst auf String prüfen und/oder herausfinden, wie es überhaupt zu null
als Übergabe kommen kann.
Hallo, bekomme seit nem Update auf 8.1 und neustes mForm & mBlock eine Fehlermeldung wenn ich ein Modul mit Tabs editiere:
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in redaxo/src/addons/mform/lib/MForm/MFormElements.php on line 65
… gibt’s da eine Lösung?scheint mir zu helfen wenn ich die Zeile 64 austausche durch :
if(!is_int($id) && $id !== null) {
aber dann meckert explode :
Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in redaxo/src/addons/mform/lib/MForm/Handler/MFormElementHandler.php on line 28
da hat mir folgender zusätzlich Code direkt nach Zeile 25 geholfen …if ($varId === null) { $varId = ""; }
(hoffentlich)