File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,9 +21,15 @@ public function __construct($value = null) {
2121 $ parent_class = get_parent_class (get_called_class ());
2222 if ($ parent_class && $ parent_class !== 'Locker\XApi\Atom ' ) {
2323 $ parent_instance = new $ parent_class ;
24- $ this ->props = array_merge ($ parent_instance ->props , $ this ->props );
25- $ this ->required_props = array_merge ($ parent_instance ->required_props , $ this ->required_props );
26- $ this ->default_props = array_merge ($ parent_instance ->default_props , $ this ->default_props );
24+ $ this ->props = array_unique (
25+ array_merge ($ parent_instance ->props , $ this ->props )
26+ );
27+ $ this ->required_props = array_unique (
28+ array_merge ($ parent_instance ->required_props , $ this ->required_props )
29+ );
30+ $ this ->default_props = array_unique (
31+ array_merge ($ parent_instance ->default_props , $ this ->default_props )
32+ );
2733 }
2834 $ this ->known_props = array_keys ($ this ->props );
2935
You can’t perform that action at this time.
0 commit comments