Skip to content

Commit 527d3ec

Browse files
authored
Upgrade PHP dependency to 7.4
1 parent a5cc4ac commit 527d3ec

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Proton/Sniffs/Architecture/ForbiddenNamespacedFunctionsSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
class ForbiddenNamespacedFunctionsSniff extends ForbiddenFunctionsSniff
1111
{
12-
protected function addError($phpcsFile, $stackPtr, $function, $pattern = null)
12+
protected function addError($phpcsFile, $stackPtr, $function, $pattern = null): void
1313
{
1414
$fqfn = NamespaceHelper::resolveName($phpcsFile, $function, 'function', $stackPtr);
1515
$canonicalName = NamespaceHelper::normalizeToCanonicalName($fqfn);

Proton/Sniffs/Spacing/ArrowFunctionSpacingSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
class ArrowFunctionSpacingSniff implements Sniff
1111
{
12-
public function register()
12+
public function register(): array
1313
{
1414
return [T_FN];
1515
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"test": "phpcs --standard=tests/phpcs.xml --report=csv tests | sort -r | cut -f 2,3,4,6 -d ',' > tests/out.csv && diff tests/expected_csv.txt tests/out.csv"
1616
},
1717
"require": {
18-
"php": "^7.1 || ^8.0",
18+
"php": "^7.4 || ^8.0",
1919
"slevomat/coding-standard": "^7.0",
2020
"squizlabs/php_codesniffer": "^3.6"
2121
},

0 commit comments

Comments
 (0)