Skip to content

Commit

Permalink
Fix extension test escape string for unix
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywhalecc committed Jul 19, 2024
1 parent 3711db1 commit c40e41c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SPC/builder/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ public function runCliCheckUnix(): void
if (file_exists(ROOT_DIR . '/src/globals/ext-tests/' . $this->getName() . '.php')) {
// Trim additional content & escape special characters to allow inline usage
$test = str_replace(
['<?php', 'declare(strict_types=1);', "\n", '"', '$'],
['', '', '', '\"', '\$'],
['<?php', 'declare(strict_types=1);', "\n", '"', '$', '!'],
['', '', '', '\"', '\$', '"\'!\'"'],
file_get_contents(ROOT_DIR . '/src/globals/ext-tests/' . $this->getName() . '.php')
);

Expand Down

0 comments on commit c40e41c

Please sign in to comment.