File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
src/StaticPHP/Runtime/Executor Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -35,16 +35,10 @@ class WindowsCMakeExecutor extends Executor
3535
3636 protected PackageInstaller $ installer ;
3737
38- public function __construct (protected LibraryPackage $ package, ? PackageBuilder $ builder = null )
38+ public function __construct (protected LibraryPackage $ package )
3939 {
4040 parent ::__construct ($ this ->package );
41- if ($ builder !== null ) {
42- $ this ->builder = $ builder ;
43- } elseif (ApplicationContext::has (PackageBuilder::class)) {
44- $ this ->builder = ApplicationContext::get (PackageBuilder::class);
45- } else {
46- throw new SPCInternalException ('PackageBuilder not found in ApplicationContext. ' );
47- }
41+ $ this ->builder = ApplicationContext::get (PackageBuilder::class);
4842 $ this ->installer = ApplicationContext::get (PackageInstaller::class);
4943 $ this ->initCmd ();
5044
You can’t perform that action at this time.
0 commit comments