Skip to content

Commit

Permalink
Allow return type resource
Browse files Browse the repository at this point in the history
  • Loading branch information
s.poniecki committed Oct 11, 2017
1 parent c814cd9 commit dfe296e
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 dfe296e

Please sign in to comment.