diff --git a/Proton/Sniffs/Architecture/ForbiddenNamespacedFunctionsSniff.php b/Proton/Sniffs/Architecture/ForbiddenNamespacedFunctionsSniff.php index 8c1b3ae..b6471c7 100644 --- a/Proton/Sniffs/Architecture/ForbiddenNamespacedFunctionsSniff.php +++ b/Proton/Sniffs/Architecture/ForbiddenNamespacedFunctionsSniff.php @@ -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); diff --git a/Proton/Sniffs/Spacing/ArrowFunctionSpacingSniff.php b/Proton/Sniffs/Spacing/ArrowFunctionSpacingSniff.php index d3194b9..48acd70 100644 --- a/Proton/Sniffs/Spacing/ArrowFunctionSpacingSniff.php +++ b/Proton/Sniffs/Spacing/ArrowFunctionSpacingSniff.php @@ -9,7 +9,7 @@ class ArrowFunctionSpacingSniff implements Sniff { - public function register() + public function register(): array { return [T_FN]; } diff --git a/composer.json b/composer.json index 97fad67..9330dd8 100644 --- a/composer.json +++ b/composer.json @@ -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" },