Skip to content

Commit 6f90d45

Browse files
committed
PHPStan fix
1 parent 767d95c commit 6f90d45

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Core_Command.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,11 @@ public function version_db_actual( $args = [], $assoc_args = [] ) {
10281028
$details = self::get_wp_details();
10291029

10301030
// Get the actual database version from the options table
1031-
$actual_db_version = (int) get_option( 'db_version' );
1031+
/**
1032+
* @var string $actual_db_version
1033+
*/
1034+
$actual_db_version = get_option( 'db_version' );
1035+
$actual_db_version = (int) $actual_db_version;
10321036

10331037
echo Utils\mustache_render(
10341038
self::get_template_path( 'versions.mustache' ),

0 commit comments

Comments
 (0)