Skip to content

Commit 2eecfdd

Browse files
committed
Fix method signature of ShapeFile::getDBFHeader()
Signed-off-by: William Desportes <[email protected]>
1 parent 28fcf39 commit 2eecfdd

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

66
## [Unreleased]
77

8+
- Fix method signature of ShapeFile::getDBFHeader()
9+
810
## [3.0.0] - 2021-02-05
911
### Added
1012
- Support for PHPUnit 8 and 9

phpstan-baseline.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
parameters:
22
ignoreErrors:
3-
-
4-
message: "#^Method PhpMyAdmin\\\\ShapeFile\\\\ShapeFile\\:\\:getDBFHeader\\(\\) should return array but returns array\\|null\\.$#"
5-
count: 1
6-
path: src/ShapeFile.php
7-
83
-
94
message: "#^Parameter \\#1 \\$fp of function feof expects resource, resource\\|false given\\.$#"
105
count: 1

src/ShapeFile.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,9 @@ public function deleteRecord(int $index): void
273273
/**
274274
* Returns array defining fields in DBF file.
275275
*
276-
* @return array see setDBFHeader for more information
276+
* @return array|null see setDBFHeader for more information
277277
*/
278-
public function getDBFHeader(): array
278+
public function getDBFHeader(): ?array
279279
{
280280
return $this->dbfHeader;
281281
}

0 commit comments

Comments
 (0)