Skip to content

Commit 752462e

Browse files
committed
strict cast check
1 parent 49d54bd commit 752462e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Model.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1931,7 +1931,7 @@ public function executeCountQuery(): int
19311931
$this->assertIsModel();
19321932

19331933
$res = $this->action('count')->getOne();
1934-
if (is_string($res)) {
1934+
if (is_string($res) && $res === (string) (int) $res) {
19351935
$res = (int) $res;
19361936
}
19371937

0 commit comments

Comments
 (0)