mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 09:14:06 +02:00
feat: Add PHP 8.4 support
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
35b33f0a72
commit
8a6c8cd17c
4 changed files with 7 additions and 5 deletions
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
|
|
@ -222,6 +222,8 @@ jobs:
|
||||||
- "8.0"
|
- "8.0"
|
||||||
- "8.1"
|
- "8.1"
|
||||||
- "8.2"
|
- "8.2"
|
||||||
|
- "8.3"
|
||||||
|
- "8.4"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: krb5-dev
|
- name: krb5-dev
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ use Throwable;
|
||||||
* @psalm-consistent-constructor
|
* @psalm-consistent-constructor
|
||||||
*/
|
*/
|
||||||
class Exception extends \Exception {
|
class Exception extends \Exception {
|
||||||
public function __construct(string $message = "", int $code = 0, Throwable $previous = null) {
|
public function __construct(string $message = "", int $code = 0, ?Throwable $previous = null) {
|
||||||
parent::__construct($message, $code, $previous);
|
parent::__construct($message, $code, $previous);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ class InvalidRequestException extends Exception {
|
||||||
*/
|
*/
|
||||||
protected $path;
|
protected $path;
|
||||||
|
|
||||||
public function __construct(string $path = "", int $code = 0, \Throwable $previous = null) {
|
public function __construct(string $path = "", int $code = 0, ?\Throwable $previous = null) {
|
||||||
$class = get_class($this);
|
$class = get_class($this);
|
||||||
$parts = explode('\\', $class);
|
$parts = explode('\\', $class);
|
||||||
$baseName = array_pop($parts);
|
$baseName = array_pop($parts);
|
||||||
|
|
|
||||||
|
|
@ -33,9 +33,9 @@ class ServerFactory {
|
||||||
* @param ITimeZoneProvider|null $timeZoneProvider
|
* @param ITimeZoneProvider|null $timeZoneProvider
|
||||||
*/
|
*/
|
||||||
public function __construct(
|
public function __construct(
|
||||||
IOptions $options = null,
|
?IOptions $options = null,
|
||||||
ISystem $system = null,
|
?ISystem $system = null,
|
||||||
ITimeZoneProvider $timeZoneProvider = null
|
?ITimeZoneProvider $timeZoneProvider = null
|
||||||
) {
|
) {
|
||||||
if (is_null($options)) {
|
if (is_null($options)) {
|
||||||
$options = new Options();
|
$options = new Options();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue