Skip to content

Commit edb6e60

Browse files
authored
[3.x] Fix mysqli::ping is deprecated since PHP 8.4 (#324)
1 parent e283eb1 commit edb6e60

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Mysqli/MysqliDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ public static function isSupported()
375375
public function connected()
376376
{
377377
if (\is_object($this->connection)) {
378-
return $this->connection->ping();
378+
return $this->connection->stat() !== false;
379379
}
380380

381381
return false;

0 commit comments

Comments
 (0)