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
|
||||||
<?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";
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user