noverify
noverify copied to clipboard
Incorrect work with constants containing arrays.
Code Example
<?php
class Foo {
const A = [];
const B = [];
const C = self::A + self::B;
}
function f() {
Foo::C[0]; // Foo::C is a float type
}
Actual Behavior
Foo::C
is a float
type.
Expected Behavior
Foo::C
is an array
type.