@@ -5,7 +5,6 @@ |
||
5 | 5 | use Pinq\Expressions as O; |
6 | 6 | use Pinq\Iterators\IIteratorScheme; |
7 | 7 | use Pinq\Queries\Requests; |
8 | -use Pinq\Queries\Segments; |
|
9 | 8 | |
10 | 9 | /** |
11 | 10 | * The standard queryable class, fully implements the queryable API |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * @param IIteratorScheme|null $scheme |
61 | 61 | * @param Traversable|null $source |
62 | 62 | * |
63 | - * @return callable |
|
63 | + * @return \Closure |
|
64 | 64 | */ |
65 | 65 | public static function factory(IIteratorScheme $scheme = null, Traversable $source = null) |
66 | 66 | { |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | * Returns a callable factory to construct an equivalent |
77 | 77 | * instance with the supplied elements. |
78 | 78 | * |
79 | - * @return callable |
|
79 | + * @return \Closure |
|
80 | 80 | */ |
81 | 81 | final protected function scopedSelfFactory() |
82 | 82 | { |
@@ -55,6 +55,9 @@ |
||
55 | 55 | AST::convert($matchingFunctionNode->getBodyNodes())); |
56 | 56 | } |
57 | 57 | |
58 | + /** |
|
59 | + * @param string $filePath |
|
60 | + */ |
|
58 | 61 | private function getLocatedFunctionNodesIn($filePath) |
59 | 62 | { |
60 | 63 | if (!isset(self::$locatedFunctions[$filePath])) { |
@@ -8,7 +8,6 @@ |
||
8 | 8 | use Pinq\Parsing\InvalidFunctionException; |
9 | 9 | use Pinq\Parsing\ParserBase; |
10 | 10 | use PhpParser; |
11 | -use Pinq\Parsing\Resolvers\FunctionMagicResolver; |
|
12 | 11 | |
13 | 12 | /** |
14 | 13 | * Function parser implementation utilising nikic\PHP-Parser to |
@@ -31,6 +31,10 @@ |
||
31 | 31 | */ |
32 | 32 | private $isPassedByReference; |
33 | 33 | |
34 | + /** |
|
35 | + * @param string $name |
|
36 | + * @param string $typeHint |
|
37 | + */ |
|
34 | 38 | public function __construct( |
35 | 39 | $name, |
36 | 40 | $typeHint = null, |