@@ -73,9 +73,9 @@ public static function patchBeforeBuildconf(BuilderBase $builder): void
7373 FileSystem::replaceFileStr (SOURCE_PATH . '/php-src/build/php.m4 ' , 'PKG_CHECK_MODULES( ' , 'PKG_CHECK_MODULES_STATIC( ' );
7474
7575 if ($ builder ->getOption ('enable-micro-win32 ' )) {
76- SourcePatcher ::patchMicroWin32 ();
76+ self ::patchMicroWin32 ();
7777 } else {
78- SourcePatcher ::unpatchMicroWin32 ();
78+ self ::unpatchMicroWin32 ();
7979 }
8080 }
8181
@@ -450,7 +450,7 @@ public static function patchImagickWith84(): bool
450450 }
451451 $ extnum = intval ($ match [1 ]);
452452 if ($ extnum < 30800 ) {
453- SourcePatcher ::patchFile ('imagick_php84_before_30800.patch ' , SOURCE_PATH . '/php-src/ext/imagick ' );
453+ self ::patchFile ('imagick_php84_before_30800.patch ' , SOURCE_PATH . '/php-src/ext/imagick ' );
454454 return true ;
455455 }
456456 return false ;
@@ -468,14 +468,14 @@ public static function patchFfiCentos7FixO3strncmp(): bool
468468 if (preg_match ('/PHP_VERSION_ID (\d+)/ ' , $ file , $ match ) !== 0 && intval ($ match [1 ]) < 80316 ) {
469469 return false ;
470470 }
471- SourcePatcher ::patchFile ('ffi_centos7_fix_O3_strncmp.patch ' , SOURCE_PATH . '/php-src ' );
471+ self ::patchFile ('ffi_centos7_fix_O3_strncmp.patch ' , SOURCE_PATH . '/php-src ' );
472472 return true ;
473473 }
474474
475475 public static function patchLibaomForAlpine (): bool
476476 {
477477 if (PHP_OS_FAMILY === 'Linux ' && SystemUtil::isMuslDist ()) {
478- SourcePatcher ::patchFile ('libaom_posix_implict.patch ' , SOURCE_PATH . '/libaom ' );
478+ self ::patchFile ('libaom_posix_implict.patch ' , SOURCE_PATH . '/libaom ' );
479479 return true ;
480480 }
481481 return false ;
@@ -484,7 +484,7 @@ public static function patchLibaomForAlpine(): bool
484484 public static function patchAttrForAlpine (): bool
485485 {
486486 if (PHP_OS_FAMILY === 'Linux ' && SystemUtil::isMuslDist () || PHP_OS_FAMILY === 'Darwin ' ) {
487- SourcePatcher ::patchFile ('attr_alpine_gethostname.patch ' , SOURCE_PATH . '/attr ' );
487+ self ::patchFile ('attr_alpine_gethostname.patch ' , SOURCE_PATH . '/attr ' );
488488 return true ;
489489 }
490490 return false ;
0 commit comments