Skip to content

Commit 154a21f

Browse files
committed
phpstan, extension test
1 parent a2e0efa commit 154a21f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/SPC/builder/unix/library/libxslt.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
namespace SPC\builder\unix\library;
66

7-
use SPC\builder\linux\LinuxBuilder;
8-
use SPC\builder\macos\MacOSBuilder;
7+
use SPC\builder\linux\library\LinuxLibraryBase;
8+
use SPC\builder\macos\library\MacOSLibraryBase;
99
use SPC\exception\FileSystemException;
1010
use SPC\exception\RuntimeException;
1111
use SPC\exception\WrongUsageException;
@@ -20,8 +20,8 @@ trait libxslt
2020
*/
2121
protected function build(): void
2222
{
23-
$static_libs = $this->builder instanceof LinuxBuilder ? $this->getStaticLibFiles(include_self: false) : '';
24-
$cpp = $this->builder instanceof MacOSBuilder ? '-lc++' : '-lstdc++';
23+
$static_libs = $this instanceof LinuxLibraryBase ? $this->getStaticLibFiles(include_self: false) : '';
24+
$cpp = $this instanceof MacOSLibraryBase ? '-lc++' : '-lstdc++';
2525
$ac = UnixAutoconfExecutor::create($this)
2626
->appendEnv([
2727
'CFLAGS' => "-I{$this->getIncludeDir()}",

0 commit comments

Comments
 (0)