add builder() and patch_point() global functions

This commit is contained in:
crazywhalecc
2024-01-09 10:35:14 +08:00
committed by Jerry Ma
parent 7620d5900e
commit fdc00301c0
2 changed files with 23 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ class BuilderProvider
/**
* @throws WrongUsageException
*/
public function getBuilder(): BuilderBase
public static function getBuilder(): BuilderBase
{
if (self::$builder === null) {
throw new WrongUsageException('Builder has not been initialized');