[web-php] PR #732: Fix trait constant example

From: Date: Thu, 08 Dec 2022 16:26:23 +0000
Subject: [web-php] PR #732: Fix trait constant example
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-30672@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/web-php/pull/732 Author: cmb69 As has been pointed out by Robert Landers[1], the PHP 8.2 example does not error. And even the pre PHP 8.2 example does not error where indicated. It does not appear to be useful to show the pre PHP 8.2 behavior (where it was not allowed to declare constants in traits); so instead we show only a PHP 8.2 example which matches the description. [1] <https://externals.io/message/119096#119100>

« previous php.webmaster (#30672) next »