Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

fix: include psr/log version to fix php7.4 errors #215

Merged
merged 1 commit into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/App/Core/Updates.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function get_available_updates(): ?int
'plugins' => $this->get_plugin_update(),
];

return $updates['core'] + $updates['themes'] + $updates['plugins'];
return (int) $updates['core'] + $updates['themes'] + $updates['plugins'];
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/App/Core/WhiteLabel.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@ public function remove_admin_wp_logo( object $wp_admin_bar ): void
*/
public function change_footer_text(): string
{
return wp_kses_post( '&copy; ' . $this->date_year . ' <a href="' . $this->home_url . '" target="_blank">' . $this->site_name . '</a> All Rights Reserved. ' . $this->powered_by );
return wp_kses_post( "&copy; $this->date_year <a href=\"$this->home_url\" target=\"_blank\">$this->site_name</a> All Rights Reserved. $this->powered_by" );
}
}
2 changes: 1 addition & 1 deletion src/inc/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function wpc_installed_plugins(): array
/**
* Get default app config values.
*
* @return (null|((mixed|string)[]|mixed|true)[]|bool|mixed|string)[]
* @return (null|bool|mixed|(mixed|(mixed|string)[]|true)[]|string)[]
*
* @psalm-return array{security: array{'brute-force': true, 'two-factor': true, 'no-pwned-passwords': true, 'admin-ips': array<empty, empty>}, mailer: array{brevo: array{apikey: mixed}, postmark: array{token: mixed}, sendgrid: array{apikey: mixed}, mailerlite: array{apikey: mixed}, mailgun: array{domain: mixed, secret: mixed, endpoint: mixed, scheme: 'https'}, ses: array{key: mixed, secret: mixed, region: mixed}}, sudo_admin: mixed, sudo_admin_group: null, web_root: 'public', s3uploads: array{bucket: mixed, key: mixed, secret: mixed, region: mixed, 'bucket-url': mixed, 'object-acl': mixed, expires: mixed, 'http-cache': mixed}, asset_dir: 'assets', content_dir: 'app', plugin_dir: 'plugins', mu_plugin_dir: 'mu-plugins', sqlite_dir: 'sqlitedb', sqlite_file: '.sqlite-wpdatabase', default_theme: 'brisko', disable_updates: true, can_deactivate: false, theme_dir: 'templates', error_handler: null, redis: array{disabled: mixed, host: mixed, port: mixed, password: mixed, adminbar: mixed, 'disable-metrics': mixed, 'disable-banners': mixed, prefix: mixed, database: mixed, timeout: mixed, 'read-timeout': mixed}, publickey: array{'app-key': mixed}}
*/
Expand Down
Loading