mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Allow to scan private constants
This commit is contained in:
parent
d6aff3ed20
commit
6227943bfb
@ -76,7 +76,7 @@ class PhpStormMetaScanner
|
||||
$constant_type = $codebase->classlikes->getClassConstantType(
|
||||
$resolved_name,
|
||||
$array_item->key->name->name,
|
||||
ReflectionProperty::IS_PUBLIC,
|
||||
ReflectionProperty::IS_PRIVATE,
|
||||
);
|
||||
|
||||
if (!$constant_type instanceof Union || !$constant_type->isSingleStringLiteral()) {
|
||||
|
@ -319,7 +319,7 @@ class StubTest extends TestCase
|
||||
class MyClass {
|
||||
|
||||
public const OBJECT = "object";
|
||||
public const EXCEPTION = "exception";
|
||||
private const EXCEPTION = "exception";
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
|
Loading…
Reference in New Issue
Block a user