This repository was archived by the owner on Sep 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
[Bug] False positive list(array.illegal_offset_type/undefined-variable/unused-variable) #298
Labels
Comments
ovr
added a commit
that referenced
this issue
Jan 15, 2017
Fixed this issue: // Notice: You are trying to use an undefined variable $_SERVER [undefined-variable]
public function testUndefinedSuperglobals($subject)
{
sprintf('%s', implode(' ', $_SERVER['argv']));
} refs 64a2881 |
ovr
added a commit
that referenced
this issue
Jan 15, 2017
…ompile variables inside isset, refs #298
Fix isssue with the code above: public function testUnusedInIssetInFetch(array $ary)
{
$var = 0;
isset($ary[$var]);
} refs be44673 |
ovr
added a commit
that referenced
this issue
Jan 15, 2017
Fix issue for code // Warning: Unused variable $thisClass in method testUnusedInNewOp() [unused-variable]
public function testUnusedInNewOp($value)
{
$thisClass = get_class($this);
return new $thisClass($value);
} refs 8bad524 |
ovr
added a commit
that referenced
this issue
Jan 15, 2017
Fix issue for code: // Notice: Illegal array offset type unknown for key $key. [array.illegal_offset_type]
public function testForeach(array $ary)
{
foreach ($ary as $key => $value) {
$ary[$key] = 1;
}
} refs 3200a40 |
@ovr binaryop\coalesce has same error as isset had. |
This was referenced Jan 28, 2017
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: