Skip to content

Commit c3c505a

Browse files
committed
Fix PHP 8.4 implicit nullable deprecations
1 parent ae4c490 commit c3c505a

File tree

95 files changed

+223
-223
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+223
-223
lines changed

src/ChangeAnnotation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ChangeAnnotation
2929
*/
3030
public $description;
3131

32-
public function __construct(string $label = null, bool $needsConfirmation = null, string $description = null)
32+
public function __construct(?string $label = null, ?bool $needsConfirmation = null, ?string $description = null)
3333
{
3434
/** @psalm-suppress PossiblyNullPropertyAssignmentValue */
3535
$this->label = $label;

src/ClientCapabilities.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ class ClientCapabilities
7676
* @param bool|null $xcacheProvider
7777
*/
7878
public function __construct(
79-
ClientCapabilitiesWorkspace $workspace = null,
80-
TextDocumentClientCapabilities $textDocument = null,
81-
ClientCapabilitiesWindow $window = null,
82-
ClientCapabilitiesGeneral $general = null,
79+
?\LanguageServerProtocol\ClientCapabilitiesWorkspace $workspace = null,
80+
?\LanguageServerProtocol\TextDocumentClientCapabilities $textDocument = null,
81+
?\LanguageServerProtocol\ClientCapabilitiesWindow $window = null,
82+
?\LanguageServerProtocol\ClientCapabilitiesGeneral $general = null,
8383
$experimental = null,
84-
bool $xfilesProvider = null,
85-
bool $xcontentProvider = null,
86-
bool $xcacheProvider = null
84+
?bool $xfilesProvider = null,
85+
?bool $xcontentProvider = null,
86+
?bool $xcacheProvider = null
8787
) {
8888
$this->workspace = $workspace;
8989
$this->textDocument = $textDocument;

src/ClientCapabilitiesGeneral.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ class ClientCapabilitiesGeneral
2424

2525

2626
public function __construct(
27-
RegularExpressionsClientCapabilities $regularExpressions = null,
28-
MarkdownClientCapabilities $markdown = null
27+
?\LanguageServerProtocol\RegularExpressionsClientCapabilities $regularExpressions = null,
28+
?\LanguageServerProtocol\MarkdownClientCapabilities $markdown = null
2929
) {
3030
$this->regularExpressions = $regularExpressions;
3131
$this->markdown = $markdown;

src/ClientCapabilitiesWindow.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ class ClientCapabilitiesWindow
3636

3737

3838
public function __construct(
39-
bool $workDoneProgress = null,
40-
ShowMessageRequestClientCapabilities $showMessage = null,
41-
ShowDocumentClientCapabilities $showDocument = null
39+
?bool $workDoneProgress = null,
40+
?\LanguageServerProtocol\ShowMessageRequestClientCapabilities $showMessage = null,
41+
?\LanguageServerProtocol\ShowDocumentClientCapabilities $showDocument = null
4242
) {
4343
$this->workDoneProgress = $workDoneProgress;
4444
$this->showMessage = $showMessage;

src/ClientCapabilitiesWorkspaceFileOperations.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ class ClientCapabilitiesWorkspaceFileOperations
5656
public $willDelete;
5757

5858
public function __construct(
59-
bool $dynamicRegistration = null,
60-
bool $didCreate = null,
61-
bool $willCreate = null,
62-
bool $didRename = null,
63-
bool $willRename = null,
64-
bool $didDelete = null,
65-
bool $willDelete = null
59+
?bool $dynamicRegistration = null,
60+
?bool $didCreate = null,
61+
?bool $willCreate = null,
62+
?bool $didRename = null,
63+
?bool $willRename = null,
64+
?bool $didDelete = null,
65+
?bool $willDelete = null
6666
) {
6767
$this->dynamicRegistration = $dynamicRegistration;
6868
$this->didCreate = $didCreate;

src/ClientInfo.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class ClientInfo
1919
public $version;
2020

2121
public function __construct(
22-
string $name = null,
23-
string $version = null
22+
?string $name = null,
23+
?string $version = null
2424
) {
2525
/** @psalm-suppress PossiblyNullPropertyAssignmentValue */
2626
$this->name = $name;

src/CodeAction.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,13 @@ class CodeAction implements JsonSerializable
112112
* @param mixed $data
113113
*/
114114
public function __construct(
115-
string $title = null,
116-
string $kind = null,
117-
array $diagnostics = null,
118-
bool $isPreferred = null,
119-
CodeActionDisabled $disabled = null,
120-
WorkspaceEdit $edit = null,
121-
Command $command = null,
115+
?string $title = null,
116+
?string $kind = null,
117+
?array $diagnostics = null,
118+
?bool $isPreferred = null,
119+
?\LanguageServerProtocol\CodeActionDisabled $disabled = null,
120+
?\LanguageServerProtocol\WorkspaceEdit $edit = null,
121+
?\LanguageServerProtocol\Command $command = null,
122122
$data = null
123123
) {
124124
/** @psalm-suppress PossiblyNullPropertyAssignmentValue */

src/CodeActionClientCapabilities.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ class CodeActionClientCapabilities
7676
public $honorsChangeAnnotations;
7777

7878
public function __construct(
79-
bool $dynamicRegistration = null,
80-
CodeActionClientCapabilitiesCodeActionLiteralSupport $codeActionLiteralSupport = null,
81-
bool $isPreferredSupport = null,
82-
bool $disabledSupport = null,
83-
bool $dataSupport = null,
84-
CodeActionClientCapabilitiesResolveSupport $resolveSupport = null,
85-
bool $honorsChangeAnnotations = null
79+
?bool $dynamicRegistration = null,
80+
?\LanguageServerProtocol\CodeActionClientCapabilitiesCodeActionLiteralSupport $codeActionLiteralSupport = null,
81+
?bool $isPreferredSupport = null,
82+
?bool $disabledSupport = null,
83+
?bool $dataSupport = null,
84+
?\LanguageServerProtocol\CodeActionClientCapabilitiesResolveSupport $resolveSupport = null,
85+
?bool $honorsChangeAnnotations = null
8686
) {
8787
$this->dynamicRegistration = $dynamicRegistration;
8888
$this->codeActionLiteralSupport = $codeActionLiteralSupport;

src/CodeLens.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class CodeLens
3636
/**
3737
* @param mixed $data
3838
*/
39-
public function __construct(Range $range = null, Command $command = null, $data = null)
39+
public function __construct(?\LanguageServerProtocol\Range $range = null, ?\LanguageServerProtocol\Command $command = null, $data = null)
4040
{
4141
/** @psalm-suppress PossiblyNullPropertyAssignmentValue */
4242
$this->range = $range;

src/CodeLensClientCapabilities.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class CodeLensClientCapabilities
1313
public $dynamicRegistration;
1414

1515
public function __construct(
16-
bool $dynamicRegistration = null
16+
?bool $dynamicRegistration = null
1717
) {
1818
$this->dynamicRegistration = $dynamicRegistration;
1919
}

0 commit comments

Comments
 (0)