Function __global->js_check_variable

Definitions

sources/webstandards_js_lint.php

  • Check a variable.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: N/A

Parameters

Name Type Default Set Range Description
$variable array required parameter N/A N/A The (possibly complex) variable
$reference boolean False N/A N/A Whether the variable is being used referentially (i.e. not being set)
$function_duality boolean False N/A N/A Whether to return the type and function-return-type pair, rather than just the type
$class ?string Null N/A N/A The class the variable is referencing within (null: global)
$allow_static boolean False N/A N/A Whether the given class is being referenced directly in static form
$is_call boolean False N/A N/A Whether this is for a function call

Return

  • The return type and possibly function return type (if requested)
  • Type: mixed
  • Set: N/A
  • Range: N/A