Skip to content

Commit 5e95133

Browse files
fix php 7.4 compat
1 parent da9ca52 commit 5e95133

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Dashboard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ protected function maybe_show_review_notice(): void
161161
$notice = new Review_Notice(
162162
'koko-analytics',
163163
'koko_analytics_settings',
164-
static fn (): array => [
164+
fn (): array => [
165165
/* translators: %s is the plugin name. */
166166
'heading' => sprintf(__('Enjoying %s?', 'koko-analytics'), 'Koko Analytics'),
167167
'body' => __('A quick review on WordPress.org helps more people find the plugin and helps us keep maintaining it for the long term.', 'koko-analytics'),

src/Review_Notice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ private function get_state(): array
120120
return array_merge($defaults, (array) ($option[$this->state_key] ?? []));
121121
}
122122

123-
private function update_state(string $key, mixed $value): void
123+
private function update_state(string $key, $value): void
124124
{
125125
$option = (array) get_option($this->option_name, []);
126126
$state = (array) ($option[$this->state_key] ?? []);

0 commit comments

Comments
 (0)