diff --git a/build/gen_stub.php b/build/gen_stub.php index 28b168c72642..c6a5309a96b6 100755 --- a/build/gen_stub.php +++ b/build/gen_stub.php @@ -78,7 +78,8 @@ function processStubFile(string $stubFile, Context $context, bool $includeOnly = $stubHash = computeStubHash($stubCode); $oldStubHash = extractStubHash($arginfoFile); if ($stubHash === $oldStubHash && !$context->forceParse) { - /* Stub file did not change, do not regenerate. */ + /* Stub file did not change, do not regenerate, but update the timestamp */ + touch($arginfoFile); return null; } }