Skip to content

Commit dc0f0dc

Browse files
committed
bug #264 chore: add tests for PHP 8.4 and fix deprecations (Chris53897)
This PR was merged into the 2.x branch. Discussion ---------- chore: add tests for PHP 8.4 and fix deprecations Commits ------- 50d52af chore: add tests for PHP 8.4 and fix deprecations
2 parents 50bb97c + 50d52af commit dc0f0dc

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

.github/workflows/test.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
- 8.1
1616
- 8.2
1717
- 8.3
18+
- 8.4
1819
dependencies: [highest]
1920

2021
steps:

src/Builder/JsonBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function getValues(): array
6868
return $this->values;
6969
}
7070

71-
public function setValues(array $values, string $pathPrefix = null): self
71+
public function setValues(array $values, ?string $pathPrefix = null): self
7272
{
7373
foreach ($values as $key => $value) {
7474
$path = sprintf('%s[%s]', $pathPrefix, $key);

src/Command/CKEditorInstallerCommand.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ private function info(string $message, OutputInterface $output): void
290290
private function block(
291291
string $message,
292292
OutputInterface $output,
293-
string $background = null,
294-
string $font = null
293+
?string $background = null,
294+
?string $font = null
295295
): void {
296296
$options = [];
297297

src/Installer/CKEditorInstaller.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ private function getDownloadUrl(array $options): string
202202
/**
203203
* @return resource
204204
*/
205-
private function createStreamContext(callable $notifier = null)
205+
private function createStreamContext(?callable $notifier = null)
206206
{
207207
$context = [];
208208
$proxy = getenv('https_proxy') ?: getenv('http_proxy');
@@ -306,7 +306,7 @@ private function extractFile(string $file, string $rewrite, string $origin, arra
306306
}
307307
}
308308

309-
private function notify(callable $notifier = null, string $type = null, mixed $data = null): mixed
309+
private function notify(?callable $notifier = null, ?string $type = null, mixed $data = null): mixed
310310
{
311311
if (null !== $notifier) {
312312
return $notifier($type, $data);

0 commit comments

Comments
 (0)