Function __global->js_ensure_type
Definitions
sources/webstandards_js_lint.php
- Do type checking for something specific.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: bool
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$_allowed_types | array | required parameter | N/A | N/A | List of allowed types |
$actual_type | string | required parameter | N/A | N/A | Actual type involved |
$pos | integer | required parameter | N/A | N/A | Current parse position |
$alt_error | ?string | Null | N/A | N/A | Specific error message to give (null: use default) |
Return
- Whether it type-checks
- Type: boolean
- Set: N/A
- Range: N/A