Fix a couple of include tests in repo mode
One just needed to have the file included in the repo. One was getting the wrong return value (true vs 1).
Esse commit está contido em:
@@ -549,7 +549,8 @@ void MethodStatement::inferFunctionTypes(AnalysisResultPtr ar) {
|
||||
}
|
||||
if (!lastIsReturn) {
|
||||
ExpressionPtr constant =
|
||||
makeConstant(ar, funcScope->inPseudoMain() ? "true" : "null");
|
||||
makeScalarExpression(ar, funcScope->inPseudoMain() ?
|
||||
Variant(1) : Variant(Variant::nullInit));
|
||||
ReturnStatementPtr returnStmt =
|
||||
ReturnStatementPtr(
|
||||
new ReturnStatement(getScope(), getLocation(), constant));
|
||||
|
||||
@@ -19,3 +19,8 @@ require $path;
|
||||
$path = __DIR__ . '/include.3.inc';
|
||||
require $path;
|
||||
|
||||
if (0) {
|
||||
// to ensure we include the file in
|
||||
// RepoAuthoritative mode
|
||||
require 'include.3.inc';
|
||||
}
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário