1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Add more accurate description of functionality

This commit is contained in:
Matthew Brown 2020-09-30 16:12:18 -04:00 committed by Daniil Gentili
parent 06f4ff89ca
commit 1a0e0b41de
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -534,10 +534,10 @@ Running `vendor/bin/psalter --issues=UnusedVariable` on
```php ```php
<?php <?php
function foo() : void { function foo(string $s) : void {
$a = 5; $a = 5;
$b = 6; $b = 6;
$c = $d = $a + $b; $c = $b += $a -= intval($s);
echo "foo"; echo "foo";
} }
``` ```
@ -546,9 +546,7 @@ gives
```php ```php
<?php <?php
function foo() : void { function foo(string $s) : void {
$a = 5;
$b = 6;
echo "foo"; echo "foo";
} }
``` ```