This repository was archived by the owner on Jun 21, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ class Date extends PropertyBase
66{
77 public function value ()
88 {
9- return $ this ->config ->date ->start ;
9+ return $ this ->config ->date ->start ?? null ;
1010 }
1111
1212 public function set ($ value ): void
Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ class People extends PropertyBase
66{
77 public function value ()
88 {
9- if (is_array ($ this ->config ->people ) && isset ( $ this -> config -> people [ 0 ]) ) {
10- return $ this ->config ->people [ 0 ]-> name ;
9+ if (is_array ($ this ->config ->people )) {
10+ return array_column ( $ this ->config ->people , ' name ' ) ;
1111 }
1212
13- return null ;
13+ return [] ;
1414 }
1515}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ class Select extends PropertyBase
66{
77 public function value ()
88 {
9- return $ this ->config ->select ->name ;
9+ return $ this ->config ->select ->name ?? null ;
1010 }
1111
1212 public function set ($ value ): void
@@ -23,7 +23,7 @@ public function get()
2323 {
2424 return [
2525 'select ' => [
26- 'name ' => $ this ->config ->select ->name ,
26+ 'name ' => $ this ->config ->select ->name ?? null ,
2727 ],
2828 ];
2929 }
You can’t perform that action at this time.
0 commit comments