Add "?" to nullable parameters in functions

This commit is contained in:
Matthias Kühne 2025-05-02 13:38:01 +02:00
commit 42627c6bb8
No known key found for this signature in database
GPG key ID: F3D2B51D6501F439
2 changed files with 4 additions and 4 deletions

View file

@ -9,7 +9,7 @@ namespace Icewind\SMB\Exception;
use Throwable;
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);
}
}

View file

@ -343,7 +343,7 @@ class NativeState {
*
* @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) {
throw new ConnectionException("Not connected");
}