mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +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;
|
|
```
|