Skip to content
This repository was archived by the owner on May 30, 2025. It is now read-only.

Commit e6904cb

Browse files
authored
Merge pull request #131 from nickvergessen/PHP-8.4
feat: Add PHP 8.4 support
2 parents 35b33f0 + 81610a3 commit e6904cb

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ jobs:
3535
- "7.3"
3636
- "7.4"
3737
- "8.0"
38+
- "8.1"
39+
- "8.2"
40+
- "8.3"
41+
- "8.4"
3842

3943
services:
4044
samba:
@@ -50,7 +54,7 @@ jobs:
5054
steps:
5155
- name: Install packages
5256
run: |
53-
sudo apt-get install smbclient
57+
sudo apt-get install smbclient libsmbclient-dev
5458
- uses: actions/checkout@v3
5559
- name: Setup PHP
5660
uses: shivammathur/setup-php@v2
@@ -222,17 +226,18 @@ jobs:
222226
- "8.0"
223227
- "8.1"
224228
- "8.2"
229+
- "8.3"
225230

226231
steps:
227232
- name: krb5-dev
228-
run: sudo apt-get install -y libkrb5-dev
233+
run: sudo apt-get install -y libkrb5-dev libsmbclient-dev
229234
- name: Checkout
230235
uses: actions/checkout@v3
231236
- name: Set up php
232237
uses: shivammathur/setup-php@master
233238
with:
234239
php-version: "${{ matrix.php-version }}"
235-
tools: composer:v1
240+
tools: composer:v2
236241
coverage: none
237242
extensions: apcu, smbclient, krb5
238243
env:

src/Exception/Exception.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* @psalm-consistent-constructor
1313
*/
1414
class Exception extends \Exception {
15-
public function __construct(string $message = "", int $code = 0, Throwable $previous = null) {
15+
public function __construct(string $message = "", int $code = 0, ?Throwable $previous = null) {
1616
parent::__construct($message, $code, $previous);
1717
}
1818

src/Exception/InvalidRequestException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class InvalidRequestException extends Exception {
1212
*/
1313
protected $path;
1414

15-
public function __construct(string $path = "", int $code = 0, \Throwable $previous = null) {
15+
public function __construct(string $path = "", int $code = 0, ?\Throwable $previous = null) {
1616
$class = get_class($this);
1717
$parts = explode('\\', $class);
1818
$baseName = array_pop($parts);

src/ServerFactory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ class ServerFactory {
3333
* @param ITimeZoneProvider|null $timeZoneProvider
3434
*/
3535
public function __construct(
36-
IOptions $options = null,
37-
ISystem $system = null,
38-
ITimeZoneProvider $timeZoneProvider = null
36+
?IOptions $options = null,
37+
?ISystem $system = null,
38+
?ITimeZoneProvider $timeZoneProvider = null
3939
) {
4040
if (is_null($options)) {
4141
$options = new Options();

0 commit comments

Comments
 (0)