Problems with PHP 8.2.0

A place to report and discuss bugs - please mention CMSimple-version, server, platform and browser version
Post Reply
frase
Posts: 5085
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Problems with PHP 8.2.0

Post by frase » Tue Jan 10, 2023 1:53 pm

XH 1.7.5
PHP 8.2.0
Settings → Configuration
Debug mode reports:
DEPRECATED: Using ${var} in strings is deprecated, use {$var} instead
… \cmsimple\classes\CoreConfigFileEdit.php:52
DEPRECATED: Using ${var} in strings is deprecated, use {$var} instead
… \cmsimple\classes\CoreConfigFileEdit.php:53
DEPRECATED: Creation of dynamic property XH\CoreConfigFileEdit::$varName is deprecated
… \cmsimple\classes\CoreConfigFileEdit.php:26

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Problems with PHP 8.2.0

Post by cmb » Fri Jan 20, 2023 10:16 pm

frase wrote:
Tue Jan 10, 2023 1:53 pm
DEPRECATED: Using ${var} in strings is deprecated, use {$var} instead
… \cmsimple\classes\CoreConfigFileEdit.php:52
DEPRECATED: Using ${var} in strings is deprecated, use {$var} instead
… \cmsimple\classes\CoreConfigFileEdit.php:53
Gefixt.
frase wrote:
Tue Jan 10, 2023 1:53 pm
DEPRECATED: Creation of dynamic property XH\CoreConfigFileEdit::$varName is deprecated
… \cmsimple\classes\CoreConfigFileEdit.php:26
Das hatte ich schon vor einer Weile gefixt (halt nur im "master"). Das ist übrigens ein schönes Beispiel für die Vorteile von statischer Analyse; da hatte ich kein PHP 8.2 im Einsatz, und obwohl erst dort die Deprecation-Notice erzeugt wird, hat das Phan schon vorab bemängelt.
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply