Skip to content

Commit dfe296e

Browse files
author
s.poniecki
committed
Allow return type resource
1 parent c814cd9 commit dfe296e

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

custom-standards/Flyeralarm/Sniffs/Docblock/ReturnTypeSniff.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class ReturnTypeSniff implements Sniff
1515
'int',
1616
'string',
1717
'float',
18+
'resource',
1819
'array',
1920
'bool[]',
2021
'int[]',
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
// @expectedPass
4+
5+
namespace flyeralarm\Test;
6+
7+
class FooTest
8+
{
9+
10+
/**
11+
* @return resource
12+
*/
13+
public function testBar()
14+
{
15+
}
16+
}

0 commit comments

Comments
 (0)