| @@ -18,9 +18,12 @@ | ||
| 18 | 18 | public function __get($name) { |
| 19 | 19 | if ($this->offsetExists($name)) { |
| 20 | 20 | return $this->offsetGet($name); |
| 21 | 21 | } |
| 22 | - trigger_error('Undefined property: ' . $name); | |
| 22 | + // Mirrors PHP's own undefined-property notice for this ArrayAccess wrapper; | |
| 23 | + // dropping it would make a mistyped property silently read as null. | |
| 24 | + // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error | |
| 25 | + trigger_error( esc_html( 'Undefined property: ' . $name ) ); | |
| 23 | 26 | } |
| 24 | 27 | |
| 25 | 28 | #[\ReturnTypeWillChange] |
| 26 | 29 | public function offsetGet ($name){ |