mirror of
https://github.com/danog/psalm.git
synced 2024-12-02 17:52:45 +01:00
12 lines
136 B
Markdown
12 lines
136 B
Markdown
# InvalidCast
|
|
|
|
Emitted when attempting to cast a value that's not castable
|
|
|
|
```php
|
|
<?php
|
|
|
|
class A {}
|
|
$a = new A();
|
|
$b = (string)$a;
|
|
```
|