Skip to content

Commit b332d4a

Browse files
committed
Added stricter checks for successful preprocessing
Made a strict boolean check for the return value of the Header Preprocessing function
1 parent e25959f commit b332d4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Symfony/src/Codebender/CompilerBundle/Handler/CompilerHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function main($request, $compiler_config)
112112

113113
// Step 3: Preprocess Header includes and determine which core files directory(CORE_DIR) will be used.
114114
$tmp = $this->preprocessHeaders($libraries, $include_directories, $compiler_dir, $ARDUINO_CORES_DIR, $EXTERNAL_CORES_DIR, $CORE_DIR, $CORE_OVERRIDE_DIR, $version, $core, $variant);
115-
if ($tmp["success"] == false)
115+
if ($tmp["success"] === false)
116116
return array_merge($tmp, ($ARCHIVE_OPTION ===true) ? array("archive" => $ARCHIVE_PATH) : array());
117117

118118
// Log the names of the project files and the libraries used in it.

0 commit comments

Comments
 (0)