Skip to content

Commit

Permalink
Add better documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Dec 19, 2021
1 parent 87a7a88 commit 10aff07
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/running_psalm/issues/InvalidScalarArgument.md
@@ -1,6 +1,10 @@
# InvalidScalarArgument

Emitted when a scalar value is passed to a method that expected another scalar type
Emitted when a scalar value is passed to a method that expected another scalar type.

This is only emitted in situations where Psalm can be sure that PHP tries to coerce one scalar type to another.

In all other cases `InvalidArgument` is emitted.

```php
<?php
Expand Down

0 comments on commit 10aff07

Please sign in to comment.