Skip to content

Commit

Permalink
chore: add tests for PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris8934 committed Nov 21, 2024
1 parent 4ee8732 commit 4bd88b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Builder/JsonBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function getValues(): array
return $this->values;
}

public function setValues(array $values, string $pathPrefix = null): self
public function setValues(array $values, ?string $pathPrefix = null): self
{
foreach ($values as $key => $value) {
$path = sprintf('%s[%s]', $pathPrefix, $key);
Expand Down
4 changes: 2 additions & 2 deletions src/Installer/CKEditorInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ private function getDownloadUrl(array $options): string
/**
* @return resource
*/
private function createStreamContext(callable $notifier = null)
private function createStreamContext(?callable $notifier = null)
{
$context = [];
$proxy = getenv('https_proxy') ?: getenv('http_proxy');
Expand Down Expand Up @@ -306,7 +306,7 @@ private function extractFile(string $file, string $rewrite, string $origin, arra
}
}

private function notify(callable $notifier = null, string $type = null, mixed $data = null): mixed
private function notify(?callable $notifier = null, ?string $type = null, mixed $data = null): mixed
{
if (null !== $notifier) {
return $notifier($type, $data);
Expand Down

0 comments on commit 4bd88b6

Please sign in to comment.