mirror of
https://github.com/danog/psalm.git
synced 2024-12-05 13:10:49 +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;
|
|
```
|