| @@ -26,11 +26,10 @@ | ||
| 26 | 26 | /** |
| 27 | 27 | * Name/Key of the Option (in its location in the database). |
| 28 | 28 | * |
| 29 | 29 | * @since 1.0.0 |
| 30 | - * @var string | |
| 31 | 30 | */ |
| 32 | - protected $option_name; | |
| 31 | + protected string $option_name; | |
| 33 | 32 | |
| 34 | 33 | /** |
| 35 | 34 | * Current value of the option. |
| 36 | 35 | * |
| @@ -36,9 +35,9 @@ | ||
| 36 | 35 | * |
| 37 | 36 | * @since 1.0.0 |
| 38 | 37 | * @var mixed[] |
| 39 | 38 | */ |
| 40 | - protected $option_value; | |
| 39 | + protected array $option_value; | |
| 41 | 40 | |
| 42 | 41 | /** |
| 43 | 42 | * Initialize with Option Name. |
| 44 | 43 | * |
| @@ -105,9 +104,9 @@ | ||
| 105 | 104 | * @return bool True on success, false on failure. |
| 106 | 105 | */ |
| 107 | 106 | public function update( array $new_options ): bool { |
| 108 | 107 | $this->option_value = $new_options; |
| 109 | - return $this->_update_option( $this->option_name, wp_json_encode( $this->option_value, TABLEPRESS_JSON_OPTIONS ) ); // @phpstan-ignore-line | |
| 108 | + return $this->_update_option( $this->option_name, wp_json_encode( $this->option_value, TABLEPRESS_JSON_OPTIONS ) ); // @phpstan-ignore argument.type | |
| 110 | 109 | } |
| 111 | 110 | |
| 112 | 111 | /** |
| 113 | 112 | * Delete Option. |