@@ -30,7 +30,6 @@ abstract class BaseNode implements NodeInterface
3030 private static array $ placeholders = [];
3131
3232 protected string $ name ;
33- protected ?NodeInterface $ parent ;
3433 protected array $ normalizationClosures = [];
3534 protected array $ normalizedTypes = [];
3635 protected array $ finalValidationClosures = [];
@@ -39,22 +38,22 @@ abstract class BaseNode implements NodeInterface
3938 protected array $ deprecation = [];
4039 protected array $ equivalentValues = [];
4140 protected array $ attributes = [];
42- protected string $ pathSeparator ;
4341
4442 private mixed $ handlingPlaceholder = null ;
4543
4644 /**
4745 * @throws \InvalidArgumentException if the name contains a period
4846 */
49- public function __construct (?string $ name , NodeInterface $ parent = null , string $ pathSeparator = self ::DEFAULT_PATH_SEPARATOR )
50- {
47+ public function __construct (
48+ ?string $ name ,
49+ protected ?NodeInterface $ parent = null ,
50+ protected string $ pathSeparator = self ::DEFAULT_PATH_SEPARATOR ,
51+ ) {
5152 if (str_contains ($ name = (string ) $ name , $ pathSeparator )) {
5253 throw new \InvalidArgumentException ('The name must not contain ". ' .$ pathSeparator .'". ' );
5354 }
5455
5556 $ this ->name = $ name ;
56- $ this ->parent = $ parent ;
57- $ this ->pathSeparator = $ pathSeparator ;
5857 }
5958
6059 /**
0 commit comments