| @@ -74,9 +74,12 @@ | ||
| 74 | 74 | return self::$instance->get( $key, $default ); |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | public function get( $key, $default ) { |
| 78 | - return $this->state[ $key ] ?? $default; | |
| 78 | + if ( isset( $this->state[ $key ] ) ) { | |
| 79 | + return $this->state[ $key ]; | |
| 80 | + } | |
| 81 | + return $default; | |
| 79 | 82 | } |
| 80 | 83 | |
| 81 | 84 | /** |
| 82 | 85 | * Render a basic version of the state field from Pro. |