diff --git a/build/gen_stub.php b/build/gen_stub.php index 38d58cf7c4223..c036ec15d20cd 100755 --- a/build/gen_stub.php +++ b/build/gen_stub.php @@ -1782,12 +1782,14 @@ protected function pName_FullyQualified(Name\FullyQualified $node) { $fileInfo->generateLegacyArginfo = true; } else if ($tag->name === 'generate-class-entries') { $fileInfo->generateClassEntries = true; + $fileInfo->declarationPrefix = $tag->value ? $tag->value . " " : ""; } } } + // Generating class entries require generating function/method entries if ($fileInfo->generateClassEntries && !$fileInfo->generateFunctionEntries) { - throw new Exception("Function entry generation must be enabled when generating class entries"); + $fileInfo->generateFunctionEntries = true; } handleStatements($fileInfo, $stmts, $prettyPrinter); diff --git a/ext/bcmath/bcmath.stub.php b/ext/bcmath/bcmath.stub.php index daf479089d218..e0b86ebe5b9d2 100644 --- a/ext/bcmath/bcmath.stub.php +++ b/ext/bcmath/bcmath.stub.php @@ -1,9 +1,6 @@