1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 18:22:42 +01:00
Files
archived-php-src/Zend/tests/nowdoc.inc
Nikita Popov 902d64390e Deprecate implicit dynamic properties
Writing to a proprety that hasn't been declared is deprecated,
unless the class uses the #[AllowDynamicProperties] attribute or
defines __get()/__set().

RFC: https://wiki.php.net/rfc/deprecate_dynamic_properties
2021-11-26 14:10:11 +01:00

11 lines
140 B
PHP

<?php
// Common definitions for heredoc/nowdoc tests.
$a = 1;
$b = 2;
$c = array( 'c' => 3, );
class d { public $d = 4; };
$d = new d;
?>