Skip to content

Commit f1d82f0

Browse files
committed
Fix a condition in addRecord to be more accurate with the documented type
Signed-off-by: William Desportes <williamdes@wdes.fr>
1 parent 16cb2b8 commit f1d82f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ShapeFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ private function updateBBox(string $type, array $data): void
231231
*/
232232
public function addRecord(ShapeRecord $record): int
233233
{
234-
if (isset($this->dbfHeader) && (is_array($this->dbfHeader))) {
234+
if ($this->dbfHeader !== null) {
235235
$record->updateDBFInfo($this->dbfHeader);
236236
}
237237

0 commit comments

Comments
 (0)