Bug #79069 [NEW]: Property name concatenation triggers deprecated warning

From: Date: Mon, 06 Jan 2020 10:13:05 +0000
Subject: Bug #79069 [NEW]: Property name concatenation triggers deprecated warning
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-224727@lists.php.net to get a copy of this message
From: gwendal dot ledoussal at jymeo dot net Operating system: MacOS PHP version: 7.4.1 Package: Unknown/Other Function Bug Type: Bug Bug description:Property name concatenation triggers deprecated warning Description: ------------ PHP 7.4 deprecated array and string offset access with curly braces but it also affect property name concatenation. Test script: --------------- <?php class Foo { public function __construct() { $bar = "bar"; $this->{'foo_' . $bar} = true; // Works $this->foo_{$bar} = true; // Triggers Array and string offset access syntax with curly braces is deprecated } } -- Edit bug report at https://bugs.php.net/bug.php?id=79069&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79069&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79069&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79069&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79069&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79069&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79069&r=support Expected behavior: https://bugs.php.net/fix.php?id=79069&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79069&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79069&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79069&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79069&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79069&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79069&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79069&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79069&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79069&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79069&r=mysqlcfg

« previous php.bugs (#224727) next »