mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-04 01:34:07 +02:00
Add "?" to nullable parameters in functions
This commit is contained in:
parent
4b9add1221
commit
42627c6bb8
2 changed files with 4 additions and 4 deletions
|
|
@ -9,7 +9,7 @@ namespace Icewind\SMB\Exception;
|
||||||
use Throwable;
|
use Throwable;
|
||||||
|
|
||||||
class RevisionMismatchException extends Exception {
|
class RevisionMismatchException extends Exception {
|
||||||
public function __construct(string $message = 'Protocol version mismatch', int $code = 0, Throwable $previous = null) {
|
public function __construct(string $message = 'Protocol version mismatch', int $code = 0, ?Throwable $previous = null) {
|
||||||
parent::__construct($message, $code, $previous);
|
parent::__construct($message, $code, $previous);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -343,7 +343,7 @@ class NativeState {
|
||||||
*
|
*
|
||||||
* @return false|int new file offset as measured from the start of the file on success.
|
* @return false|int new file offset as measured from the start of the file on success.
|
||||||
*/
|
*/
|
||||||
public function lseek($file, int $offset, int $whence = SEEK_SET, string $path = null) {
|
public function lseek($file, int $offset, int $whence = SEEK_SET, ?string $path = null) {
|
||||||
if (!$this->state) {
|
if (!$this->state) {
|
||||||
throw new ConnectionException("Not connected");
|
throw new ConnectionException("Not connected");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue