Completed
Pull Request — master (#341)
by Strahinja
04:06
created
src/Analyzer/Pass/Statement/OptionalParamBeforeRequired.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     const DESCRIPTION = 'Checks if any optional parameters are before a required one. For example: `function ($a = 1, $b)`';
18 18
 
19 19
     /**
20
-     * @param Stmt\Function|Stmt\ClassMethod $func
20
+     * @param Stmt $func
21 21
      * @param Context $context
22 22
      * @return bool
23 23
      */
Please login to merge, or discard this patch.
src/Context.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -320,7 +320,7 @@
 block discarded – undo
320 320
     }
321 321
 
322 322
     /**
323
-     * @return string|integer|null
323
+     * @return integer
324 324
      */
325 325
     public function getCurrentBranch()
326 326
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use PHPSA\Compiler\Expression;
9 9
 use PHPSA\Compiler\GlobalVariable;
10 10
 use PHPSA\Definition\AbstractDefinition;
11
-use PHPSA\Definition\ParentDefinition;
12 11
 use Symfony\Component\Console\Output\OutputInterface;
13 12
 use Webiny\Component\EventManager\EventManager;
14 13
 
Please login to merge, or discard this patch.
src/ControlFlow/ControlFlowGraph.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
 
143 143
     /**
144 144
      * @param \PhpParser\Node\Expr $expr
145
-     * @return Node\AbstractNode
145
+     * @return Node\AbstractNode|null
146 146
      */
147 147
     protected function passExpr(\PhpParser\Node\Expr $expr)
148 148
     {
Please login to merge, or discard this patch.
src/Analyzer/Pass/Expression/FunctionCall/FunctionStringFormater.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
3 3
 namespace PHPSA\Analyzer\Pass\Expression\FunctionCall;
4 4
 
5 5
 use PHPSA\Context;
6
-use PhpParser\Node;
7
-use PhpParser\Node\Stmt;
8 6
 use PHPSA\Analyzer\Pass;
9 7
 use PhpParser\Node\Expr\Array_;
10 8
 use PhpParser\Node\Expr\FuncCall;
Please login to merge, or discard this patch.