Skip to content

Commit

Permalink
[1.6] Add PHP 8.3 support (#14)
Browse files Browse the repository at this point in the history
Co-authored-by: divinity76 <[email protected]>
Co-authored-by: StyleCI Bot <[email protected]>
  • Loading branch information
3 people authored Mar 17, 2024
1 parent 2cf557f commit 504b722
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['7.4', '8.0', '8.1', '8.2', '8.3']

steps:
- name: Checkout Code
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The library can be installed with Composer and is available on Packagist under
$ composer require chrome-php/wrench
```

PHP 7.4-8.2 are currently supported, only.
PHP 7.4-8.3 are currently supported, only.


## Usage
Expand Down
2 changes: 1 addition & 1 deletion examples/StatusApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function statusMsg($text, $type = 'info'): void
{
$data = [
'type' => $type,
'text' => '['.\strftime('%m-%d %H:%M', \time()).'] '.$text,
'text' => '['.\date('m-d H:i', \time()).'] '.$text,
];

$encodedData = $this->_encodeData('statusMsg', $data);
Expand Down
2 changes: 1 addition & 1 deletion tests/Protocol/ProtocolBaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function testValidateOriginUriValid(string $uri): void
{
try {
$valid = self::getInstance()->validateOriginUri($uri);
} catch (\Exception $e) {
} catch (Exception $e) {
$this->fail('Valid URI validated as invalid: '.$e);
}
}
Expand Down
6 changes: 4 additions & 2 deletions tests/Test/ServerTestHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,11 @@ public function setUp(): void
2 => ['file', $directory.'/server.err.log', 'a+'],
],
$this->pipes,
__DIR__.'../'
__DIR__.'/../'
);

if (false === $this->process) {
throw new \RuntimeException('proc_open failed: '.\var_export(\error_get_last(), true));
}
\sleep(3);
}

Expand Down

0 comments on commit 504b722

Please sign in to comment.