When declaring default values ββfor properties in a PHP class, it seems like you cannot use concatenation. Is there a reason for this?
class Foo { public $property = __DIR__ . '/'; }
See http://www.php.net/manual/en/language.oop5.properties.php
public, protected private, . , , .
public function __construct() { $this->settings = __DIR__ . '/'; }
PHP 5.6 PHP. . https://wiki.php.net/rfc/const_scalar_exprs.
, ( const, , ..), .
__constructor. php5. $this- > class_name() php4.