diff --git a/build/stubs/zip.php b/build/stubs/zip.php
index b0dc3ba3ae2..10590aeed50 100644
--- a/build/stubs/zip.php
+++ b/build/stubs/zip.php
@@ -732,8 +732,8 @@ class ZipArchive implements Countable
* @return bool TRUE on success or FALSE on failure.
*/
public function addEmptyDir(
- $dirname,
- $flags
+ string $dirname,
+ int $flags = 0
) {}
/**