mirror of
https://github.com/Ne-Lexa/php-zip.git
synced 2025-08-02 13:37:25 +02:00
fix static analysis config
This commit is contained in:
3
.gitattributes
vendored
3
.gitattributes
vendored
@@ -5,4 +5,7 @@
|
|||||||
bootstrap.php export-ignore
|
bootstrap.php export-ignore
|
||||||
logo.svg export-ignore
|
logo.svg export-ignore
|
||||||
phpunit.xml export-ignore
|
phpunit.xml export-ignore
|
||||||
|
phpunit.xml.dist export-ignore
|
||||||
|
psalm.xml export-ignore
|
||||||
|
psalm.xml.dist export-ignore
|
||||||
tests export-ignore
|
tests export-ignore
|
||||||
|
9
.gitignore
vendored
9
.gitignore
vendored
@@ -1,7 +1,6 @@
|
|||||||
/vendor
|
|
||||||
*.iml
|
|
||||||
/.idea
|
/.idea
|
||||||
/composer.lock
|
|
||||||
/*.cache
|
|
||||||
build/
|
build/
|
||||||
.phpunit.result.cache
|
/vendor
|
||||||
|
*.cache
|
||||||
|
composer.lock
|
||||||
|
psalm.xml
|
||||||
|
@@ -10,7 +10,6 @@
|
|||||||
<directory name="src" />
|
<directory name="src" />
|
||||||
<ignoreFiles>
|
<ignoreFiles>
|
||||||
<directory name="vendor" />
|
<directory name="vendor" />
|
||||||
<directory name="benchmarks" />
|
|
||||||
<directory name="tests"/>
|
<directory name="tests"/>
|
||||||
</ignoreFiles>
|
</ignoreFiles>
|
||||||
</projectFiles>
|
</projectFiles>
|
@@ -49,10 +49,12 @@ final class UnrecognizedExtraField implements ZipExtraField
|
|||||||
/**
|
/**
|
||||||
* Populate data from this array as if it was in local file data.
|
* Populate data from this array as if it was in local file data.
|
||||||
*
|
*
|
||||||
* @param string $buffer the buffer to read data from
|
* @param string $buffer the buffer to read data from
|
||||||
* @param ?ZipEntry $entry
|
* @param ZipEntry|null $entry optional zip entry
|
||||||
|
*
|
||||||
|
* @return UnrecognizedExtraField
|
||||||
*/
|
*/
|
||||||
public static function unpackLocalFileData(string $buffer, ?ZipEntry $entry = null): ZipExtraField
|
public static function unpackLocalFileData(string $buffer, ?ZipEntry $entry = null): self
|
||||||
{
|
{
|
||||||
throw new RuntimeException('Unsupport parse');
|
throw new RuntimeException('Unsupport parse');
|
||||||
}
|
}
|
||||||
@@ -60,10 +62,12 @@ final class UnrecognizedExtraField implements ZipExtraField
|
|||||||
/**
|
/**
|
||||||
* Populate data from this array as if it was in central directory data.
|
* Populate data from this array as if it was in central directory data.
|
||||||
*
|
*
|
||||||
* @param string $buffer the buffer to read data from
|
* @param string $buffer the buffer to read data from
|
||||||
* @param ?ZipEntry $entry
|
* @param ZipEntry|null $entry optional zip entry
|
||||||
|
*
|
||||||
|
* @return UnrecognizedExtraField
|
||||||
*/
|
*/
|
||||||
public static function unpackCentralDirData(string $buffer, ?ZipEntry $entry = null): ZipExtraField
|
public static function unpackCentralDirData(string $buffer, ?ZipEntry $entry = null): self
|
||||||
{
|
{
|
||||||
throw new RuntimeException('Unsupport parse');
|
throw new RuntimeException('Unsupport parse');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user