Skip to content

Commit 5d0143d

Browse files
committed
Check whether function has return typehint
1 parent c00b30d commit 5d0143d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"autoload-dev": {
3131
"classmap": ["tests/"],
3232
"files": [
33-
"tests/Rules/Functions/data/missing-function-parameter-typehint.php"
33+
"tests/Rules/Functions/data/missing-function-parameter-typehint.php",
34+
"tests/Rules/Functions/data/missing-function-return-typehint.php"
3435
]
3536
}
3637
}

Diff for: rules.neon

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ rules:
1515
- PHPStan\Rules\DisallowedConstructs\DisallowedEmptyRule
1616
- PHPStan\Rules\DisallowedConstructs\DisallowedImplicitArrayCreationRule
1717
- PHPStan\Rules\Functions\MissingFunctionParameterTypehintRule
18+
- PHPStan\Rules\Functions\MissingFunctionReturnTypehintRule
1819
- PHPStan\Rules\Methods\MissingMethodParameterTypehintRule
1920
- PHPStan\Rules\Methods\MissingMethodReturnTypehintRule
2021
- PHPStan\Rules\Methods\WrongCaseOfInheritedMethodRule

0 commit comments

Comments
 (0)