mirror of
https://github.com/danog/psalm.git
synced 2024-12-14 18:36:58 +01:00
13 lines
210 B
Markdown
13 lines
210 B
Markdown
|
# InvalidConstantAssignmentValue
|
||
|
|
||
|
Emitted when attempting to assign a value to a class constant that cannot contain that type.
|
||
|
|
||
|
```php
|
||
|
<?php
|
||
|
|
||
|
class Foo {
|
||
|
/** @var int */
|
||
|
public const BAR = "bar";
|
||
|
}
|
||
|
```
|