mirror of
https://github.com/danog/psalm.git
synced 2024-12-15 02:47:02 +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;
|
|
```
|