diff --git a/custom-standards/Flyeralarm/Sniffs/Docblock/ReturnTypeSniff.php b/custom-standards/Flyeralarm/Sniffs/Docblock/ReturnTypeSniff.php index 5f4a94e..3d92aea 100644 --- a/custom-standards/Flyeralarm/Sniffs/Docblock/ReturnTypeSniff.php +++ b/custom-standards/Flyeralarm/Sniffs/Docblock/ReturnTypeSniff.php @@ -15,6 +15,7 @@ class ReturnTypeSniff implements Sniff 'int', 'string', 'float', + 'resource', 'array', 'bool[]', 'int[]', diff --git a/tests/rules/doc/allowed/ReturnTypeResource.php b/tests/rules/doc/allowed/ReturnTypeResource.php new file mode 100644 index 0000000..215ee49 --- /dev/null +++ b/tests/rules/doc/allowed/ReturnTypeResource.php @@ -0,0 +1,16 @@ +