Skip to content

Commit 7e74e5f

Browse files
committed
build
1 parent e8c61e3 commit 7e74e5f

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

package/src/progpilot/AbstractLayer/Analysis.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ public static function checkIfFuncEqualMySpecify($context, $mySpecify, $myFunc,
9494
$i ++;
9595
}
9696
}
97+
} elseif ($mySpecify->isInstance() && is_null($stackClass)) {
98+
$checkInstance = false;
9799
}
98-
else if ($mySpecify->isInstance() && is_null($stackClass))
99-
$checkInstance = false;
100100
}
101101

102102
return $checkInstance & $checkName;

package/src/progpilot/Analysis/CustomAnalysis.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,12 @@ public static function mustVerifyDefinition($context, $instruction, $myFunc, $st
147147
|| $customRule->getAction() === "MUST_NOT_VERIFY_DEFINITION")) {
148148
$functionDefinition = $customRule->getDefinition();
149149

150-
$result = AbstractAnalysis::checkIfFuncEqualMySpecify($context, $functionDefinition, $myFunc, $stackClass);
150+
$result = AbstractAnalysis::checkIfFuncEqualMySpecify(
151+
$context,
152+
$functionDefinition,
153+
$myFunc,
154+
$stackClass
155+
);
151156

152157
if (!is_null($functionDefinition)) {
153158
if ($result) {

package/src/progpilot/Console/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
class Application extends BaseApplication
1818
{
1919
const NAME = 'progpilot';
20-
const VERSION = '0.4.0';
20+
const VERSION = '0.5.0';
2121

2222
public function __construct()
2323
{

0 commit comments

Comments
 (0)