Skip to content

Commit

Permalink
Upgrade PHP dependency to 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
BafS committed Mar 30, 2022
1 parent a5cc4ac commit 527d3ec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class ForbiddenNamespacedFunctionsSniff extends ForbiddenFunctionsSniff
{
protected function addError($phpcsFile, $stackPtr, $function, $pattern = null)
protected function addError($phpcsFile, $stackPtr, $function, $pattern = null): void
{
$fqfn = NamespaceHelper::resolveName($phpcsFile, $function, 'function', $stackPtr);
$canonicalName = NamespaceHelper::normalizeToCanonicalName($fqfn);
Expand Down
2 changes: 1 addition & 1 deletion Proton/Sniffs/Spacing/ArrowFunctionSpacingSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class ArrowFunctionSpacingSniff implements Sniff
{
public function register()
public function register(): array
{
return [T_FN];
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"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"
},
"require": {
"php": "^7.1 || ^8.0",
"php": "^7.4 || ^8.0",
"slevomat/coding-standard": "^7.0",
"squizlabs/php_codesniffer": "^3.6"
},
Expand Down

0 comments on commit 527d3ec

Please sign in to comment.