PluginProbe
TablePress – Tables in WordPress made easy / 3.0
TablePress – Tables in WordPress made easy v3.0
3.3.4 3.3.3 3.3.2 3.3.1 trunk 1.12 1.14 1.9.2 2.0.4 2.1.7 2.1.8 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3 2.3.1 2.3.2 2.4 2.4.1 2.4.2 2.4.3 2.4.4 All 44 releases
← All changes | classes/class-wp_option.php +3 -4 2.33.0 View file →
@@ -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.