mirror of
https://github.com/google/blockly.git
synced 2025-12-16 06:10:12 +01:00
release: Merge branch 'develop' into rc/v11.0.0
This commit is contained in:
@@ -27,7 +27,7 @@ export function procedures_defreturn(block: Block, generator: PhpGenerator) {
|
||||
for (const variable of usedVariables) {
|
||||
const varName = variable.name;
|
||||
// getVars returns parameter names, not ids, for procedure blocks
|
||||
if (block.getVars().indexOf(varName) === -1) {
|
||||
if (!block.getVars().includes(varName)) {
|
||||
globals.push(generator.getVariableName(varName));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user