| @@ -8,9 +8,9 @@ | ||
| 8 | 8 | */ |
| 9 | 9 | class FrmFieldOption { |
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | - * @var int|string | |
| 12 | + * @var string|int | |
| 13 | 13 | * |
| 14 | 14 | * @since 2.03.05 |
| 15 | 15 | */ |
| 16 | 16 | protected $option_key; |
| @@ -15,9 +15,9 @@ | ||
| 15 | 15 | */ |
| 16 | 16 | protected $option_key; |
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | - * @var array|string | |
| 19 | + * @var string|array | |
| 20 | 20 | * |
| 21 | 21 | * @since 2.03.05 |
| 22 | 22 | */ |
| 23 | 23 | protected $option; |
| @@ -49,9 +49,9 @@ | ||
| 49 | 49 | * @return void |
| 50 | 50 | */ |
| 51 | 51 | private function set_option_label() { |
| 52 | 52 | if ( is_array( $this->option ) ) { |
| 53 | - $this->option_label = ( $this->option['label'] ?? reset( $this->option ) ); | |
| 53 | + $this->option_label = ( isset( $this->option['label'] ) ? $this->option['label'] : reset( $this->option ) ); | |
| 54 | 54 | } else { |
| 55 | 55 | $this->option_label = $this->option; |
| 56 | 56 | } |
| 57 | 57 | } |
| @@ -72,9 +72,9 @@ | ||
| 72 | 72 | * |
| 73 | 73 | * @since 2.03.05 |
| 74 | 74 | * |
| 75 | 75 | * @param string $selected_value |
| 76 | - * @param int $truncate | |
| 76 | + * @param int $truncate | |
| 77 | 77 | * |
| 78 | 78 | * @return void |
| 79 | 79 | */ |
| 80 | 80 | public function print_single_option( $selected_value, $truncate ) { |