From a49454def53ba067e5f9ab8043c5541e1216547c Mon Sep 17 00:00:00 2001 From: Nicolas CARPi <3043706+NicolasCARPi@users.noreply.github.com> Date: Sat, 22 Feb 2020 18:10:37 +0100 Subject: [PATCH] Add psalm config file and fix improper doc comment (#140) --- psalm.xml | 55 +++++++++++++++++++++++++++++++++++++++++++++++ src/ZipStream.php | 2 +- 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 psalm.xml diff --git a/psalm.xml b/psalm.xml new file mode 100644 index 0000000..42f355b --- /dev/null +++ b/psalm.xml @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/ZipStream.php b/src/ZipStream.php index 13c2374..08acfbc 100644 --- a/src/ZipStream.php +++ b/src/ZipStream.php @@ -268,7 +268,7 @@ public function addFileFromPath(string $name, string $path, ?FileOptions $option * Add an open stream to the archive. * * @param String $name - path of file in archive (including directory). - * @param Resource $stream - contents of file as a stream resource + * @param resource $stream - contents of file as a stream resource * @param FileOptions $options * * File Options: