Skip to content

Commit

Permalink
Merge pull request #5 from svenja-poniecki/AddedReturnTypeResource
Browse files Browse the repository at this point in the history
Allow return type resource
  • Loading branch information
max-grosch authored Oct 11, 2017
2 parents c814cd9 + dfe296e commit 45eacdb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class ReturnTypeSniff implements Sniff
'int',
'string',
'float',
'resource',
'array',
'bool[]',
'int[]',
Expand Down
16 changes: 16 additions & 0 deletions tests/rules/doc/allowed/ReturnTypeResource.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

// @expectedPass

namespace flyeralarm\Test;

class FooTest
{

/**
* @return resource
*/
public function testBar()
{
}
}

0 comments on commit 45eacdb

Please sign in to comment.