Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Oct 13, 2023
1 parent 891c0b9 commit 7007e81
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [7.0, 7.1]
php: ["7.0", "7.1"]

env:
PHP_DOCKER_VERSION: ${{ matrix.php }}
Expand Down
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
->setFinder(
PhpCsFixer\Finder::create()
->exclude(__DIR__ . '/vendor')
->in(__DIR__ . '/.github')
->in(__DIR__ . '/src')
->in(__DIR__ . '/examples')
->in(__DIR__ . '/tests')
Expand Down
4 changes: 2 additions & 2 deletions src/YurunHttp/Stream/MemoryStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public function isReadable(): bool
*
* @throws \RuntimeException if an error occurs
*/
public function read(int $length): string
public function read($length): string
{
$position = &$this->position;
$result = substr($this->content, $position, $length);
Expand Down Expand Up @@ -274,7 +274,7 @@ public function getContents(): string
* provided. Returns a specific key value if a key is provided and the
* value is found, or null if the key is not found.
*/
public function getMetadata(string $key = null)
public function getMetadata($key = null)
{
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/server/Http/start-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ __DIR__=$(cd `dirname $0`; pwd)

${__DIR__}/stop-server.sh

/usr/bin/env php $__DIR__/server.php start -d > log.log
/usr/bin/env php $__DIR__/server.php start -d > ${__DIR__}/log.log
2 changes: 1 addition & 1 deletion tests/server/Http2/start-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ else
phpPath="/usr/bin/env php"
fi

nohup $phpPath $__DIR__/http2-server.php > log.log 2>&1 & echo $! > "$__DIR__/server.pid"
nohup $phpPath $__DIR__/http2-server.php > ${__DIR__}/log.log 2>&1 & echo $! > "$__DIR__/server.pid"
2 changes: 1 addition & 1 deletion tests/server/WebSocket/start-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ else
phpPath="/usr/bin/env php"
fi

nohup $phpPath $__DIR__/ws-server.php > log.log 2>&1 & echo $! > "$__DIR__/server.pid"
nohup $phpPath $__DIR__/ws-server.php > ${__DIR__}/log.log 2>&1 & echo $! > "$__DIR__/server.pid"

0 comments on commit 7007e81

Please sign in to comment.