From d07b57576d954a9dbb39f8dc511d4994444721df Mon Sep 17 00:00:00 2001 From: Brian Dunne Date: Mon, 30 Oct 2023 21:46:40 -0500 Subject: [PATCH] Stub constants for ZipArchive from ext-zip This stubs out the class constants for ZipArchive, which I believe are the only constants introduced by the `zip` extension. This should allow Psalm to run over code utilizing any of these constants even if the analyzing system doesn't have ext-zip installed/enabled (e.g. a GitHub Actions container). --- stubs/extensions/zip.phpstub | 109 +++++++++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 stubs/extensions/zip.phpstub diff --git a/stubs/extensions/zip.phpstub b/stubs/extensions/zip.phpstub new file mode 100644 index 00000000000..8c217d314c4 --- /dev/null +++ b/stubs/extensions/zip.phpstub @@ -0,0 +1,109 @@ +