1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 12:24:49 +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
function foo() : void {
function foo(string $s) : void {
$a = 5;
$b = 6;
$c = $d = $a + $b;
$c = $b += $a -= intval($s);
echo "foo";
}
```
@ -546,9 +546,7 @@ gives
```php
<?php
function foo() : void {
$a = 5;
$b = 6;
function foo(string $s) : void {
echo "foo";
}
```