Skip to content

Commit

Permalink
Fix a condition in addRecord to be more accurate with the documented …
Browse files Browse the repository at this point in the history
…type

Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Jun 29, 2023
1 parent 16cb2b8 commit f1d82f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ShapeFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ private function updateBBox(string $type, array $data): void
*/
public function addRecord(ShapeRecord $record): int
{
if (isset($this->dbfHeader) && (is_array($this->dbfHeader))) {
if ($this->dbfHeader !== null) {
$record->updateDBFInfo($this->dbfHeader);
}

Expand Down

0 comments on commit f1d82f0

Please sign in to comment.