Skip to content

Commit c40e41c

Browse files
committed
Fix extension test escape string for unix
1 parent 3711db1 commit c40e41c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SPC/builder/Extension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ public function runCliCheckUnix(): void
180180
if (file_exists(ROOT_DIR . '/src/globals/ext-tests/' . $this->getName() . '.php')) {
181181
// Trim additional content & escape special characters to allow inline usage
182182
$test = str_replace(
183-
['<?php', 'declare(strict_types=1);', "\n", '"', '$'],
184-
['', '', '', '\"', '\$'],
183+
['<?php', 'declare(strict_types=1);', "\n", '"', '$', '!'],
184+
['', '', '', '\"', '\$', '"\'!\'"'],
185185
file_get_contents(ROOT_DIR . '/src/globals/ext-tests/' . $this->getName() . '.php')
186186
);
187187

0 commit comments

Comments
 (0)