Skip to content

False positive for call-time pass-by-reference #39

@djaenecke

Description

@djaenecke

First of all - thanks for providing these sniffs, they really make our job a bit easier!

The following example raises an error, stating that

Using a call-time pass-by-reference is prohibited since php 5.4

Example code:

class Bar() {
    const FOO = 1;
}

function foo() {
}

$a=2;
foo(Bar::FOO & $a);

We get some false positives for this, so a fix would be nice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions