Skip to content

Commit 3c80211

Browse files
committed
cs-fix and fix tests
1 parent 58095a6 commit 3c80211

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/SPC/util/GlobalEnvManager.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ public static function getInitializedEnv(): array
2424
/**
2525
* Initialize the environment variables
2626
*
27-
* @param BuilderBase $builder Builder
27+
* @param null|BuilderBase $builder Builder
2828
* @throws RuntimeException
29+
* @throws WrongUsageException
2930
*/
3031
public static function init(?BuilderBase $builder = null): void
3132
{

tests/SPC/builder/BuilderTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function testGetPHPVersion()
102102
{
103103
if (file_exists(SOURCE_PATH . '/php-src/main/php_version.h')) {
104104
$file = SOURCE_PATH . '/php-src/main/php_version.h';
105-
$cnt = preg_match('/PHP_VERSION "(\d+\.\d+\.\d+)"/', $file, $match);
105+
$cnt = preg_match('/PHP_VERSION "(\d+\.\d+\.\d+)"/', file_get_contents($file), $match);
106106
if ($cnt !== 0) {
107107
$this->assertEquals($match[1], $this->builder->getPHPVersion());
108108
} else {

0 commit comments

Comments
 (0)