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:
parent
06f4ff89ca
commit
1a0e0b41de
@ -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";
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user