PluginProbe
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More / 2.6.1
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More v2.6.1
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.10 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 47 releases
← All changes | classes/Controllers/Shortcodes.php +5 -5 2.0.122.6.1 View file →
@@ -102,15 +102,15 @@
102 102 * These are typically valueless boolean attributes.
103 103 *
104 104 * @param array<string|int,string|int|null> $atts Array of shortcode attributes.
105 105 *
106 - * @return array<string,string|int|bool|null>
106 + * @return (int|null|string|true)[]
107 + *
108 + * @psalm-return array<int|string, int|null|string|true>
107 109 */
108 110 public function normalize_empty_atts( $atts = [] ) {
109 - if ( ! is_array( $atts ) ) {
110 - if ( empty( $atts ) ) {
111 - $atts = [];
112 - }
111 + if ( ! is_array( $atts ) || empty( $atts ) ) {
112 + $atts = [];
113 113 }
114 114
115 115 foreach ( $atts as $attribute => $value ) {
116 116 if ( is_int( $attribute ) ) {