Skip to content

Commit 8f43a3a

Browse files
committedFeb 23, 2021
fix static analysis config
1 parent 00dd097 commit 8f43a3a

File tree

4 files changed

+17
-12
lines changed

4 files changed

+17
-12
lines changed
 

Diff for: ‎.gitattributes

+3
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@
55
bootstrap.php export-ignore
66
logo.svg export-ignore
77
phpunit.xml export-ignore
8+
phpunit.xml.dist export-ignore
9+
psalm.xml export-ignore
10+
psalm.xml.dist export-ignore
811
tests export-ignore

Diff for: ‎.gitignore

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
/vendor
2-
*.iml
31
/.idea
4-
/composer.lock
5-
/*.cache
62
build/
7-
.phpunit.result.cache
3+
/vendor
4+
*.cache
5+
composer.lock
6+
psalm.xml

Diff for: ‎psalm.xml renamed to ‎psalm.xml.dist

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
<directory name="src" />
1111
<ignoreFiles>
1212
<directory name="vendor" />
13-
<directory name="benchmarks" />
1413
<directory name="tests"/>
1514
</ignoreFiles>
1615
</projectFiles>

Diff for: ‎src/Model/Extra/Fields/UnrecognizedExtraField.php

+10-6
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,25 @@ public function getHeaderId(): int
4949
/**
5050
* Populate data from this array as if it was in local file data.
5151
*
52-
* @param string $buffer the buffer to read data from
53-
* @param ?ZipEntry $entry
52+
* @param string $buffer the buffer to read data from
53+
* @param ZipEntry|null $entry optional zip entry
54+
*
55+
* @return UnrecognizedExtraField
5456
*/
55-
public static function unpackLocalFileData(string $buffer, ?ZipEntry $entry = null): ZipExtraField
57+
public static function unpackLocalFileData(string $buffer, ?ZipEntry $entry = null): self
5658
{
5759
throw new RuntimeException('Unsupport parse');
5860
}
5961

6062
/**
6163
* Populate data from this array as if it was in central directory data.
6264
*
63-
* @param string $buffer the buffer to read data from
64-
* @param ?ZipEntry $entry
65+
* @param string $buffer the buffer to read data from
66+
* @param ZipEntry|null $entry optional zip entry
67+
*
68+
* @return UnrecognizedExtraField
6569
*/
66-
public static function unpackCentralDirData(string $buffer, ?ZipEntry $entry = null): ZipExtraField
70+
public static function unpackCentralDirData(string $buffer, ?ZipEntry $entry = null): self
6771
{
6872
throw new RuntimeException('Unsupport parse');
6973
}

0 commit comments

Comments
 (0)
Please sign in to comment.