Skip to content

Commit 4c8f81b

Browse files
committed
update for php8.4
1 parent 97e223d commit 4c8f81b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"gettext/gettext": "^5.5.0"
2424
},
2525
"require-dev": {
26-
"phpunit/phpunit": "^9",
26+
"phpunit/phpunit": "^10",
2727
"squizlabs/php_codesniffer": "^3.0",
2828
"oscarotero/php-cs-fixer-config": "^2",
2929
"friendsofphp/php-cs-fixer": "^3"

src/PhpFunctionsScanner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class PhpFunctionsScanner implements FunctionsScannerInterface
1212
protected Parser $parser;
1313
protected ?array $validFunctions;
1414

15-
public function __construct(array $validFunctions = null, Parser $parser = null)
15+
public function __construct(?array $validFunctions = null, ?Parser $parser = null)
1616
{
1717
$this->validFunctions = $validFunctions;
1818
$this->parser = $parser ?: (new ParserFactory())->createForNewestSupportedVersion();

src/PhpNodeVisitor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class PhpNodeVisitor implements NodeVisitor
2121
/** @var Comment[] */
2222
protected array $bufferComments = [];
2323

24-
public function __construct(string $filename, array $validFunctions = null)
24+
public function __construct(string $filename, ?array $validFunctions = null)
2525
{
2626
$this->filename = $filename;
2727
$this->validFunctions = $validFunctions;

src/PhpScanner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected function saveTranslation(
4343
?string $domain,
4444
?string $context,
4545
string $original,
46-
string $plural = null
46+
?string $plural = null
4747
): ?Translation {
4848
$translation = parent::saveTranslation($domain, $context, $original, $plural);
4949

0 commit comments

Comments
 (0)