Skip to content

Commit e94394a

Browse files
committed
Fix compatibility of Postgres result for PHP 8.1
1 parent c0bb804 commit e94394a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

system/Database/BaseResult.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ abstract class BaseResult implements ResultInterface
2828
/**
2929
* Result ID
3030
*
31-
* @var bool|object|resource
31+
* @var false|object|resource
3232
*/
3333
public $resultID;
3434

system/Database/Postgre/Result.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function getFieldData(): array
6868
*/
6969
public function freeResult()
7070
{
71-
if (is_resource($this->resultID)) {
71+
if ($this->resultID !== false) {
7272
pg_free_result($this->resultID);
7373
$this->resultID = false;
7474
}

0 commit comments

Comments
 (0)