Skip to content

Use the statement stack when processing annotations #71

Open
@tchule

Description

@tchule

Instead of having in _processAnnotation :

if ($token == T_CLASS) {
	$this->_classSuppressWarnings[] = $suppressedCheck;
} elseif ($token == T_INTERFACE) {
	$this->_interfaceSuppressWarnings[] = $suppressedCheck;
} elseif ($token == T_FUNCTION) {
	$this->_functionSuppressWarnings[] = $suppressedCheck;
} elseif ($token == T_FILE) {
	$this->_fileSuppressWarnings[] = $suppressedCheck;
}

Store the annotation in the current stack item.

Then when analysing, check for all annontations in the stack (including parents).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions