mirror of
https://github.com/danog/psalm.git
synced 2024-12-05 21:19:03 +01:00
14 lines
189 B
Markdown
14 lines
189 B
Markdown
# DuplicateParam
|
|
|
|
Emitted when a function has a param defined twice
|
|
|
|
```php
|
|
<?php
|
|
|
|
function foo(int $b, string $b) {}
|
|
```
|
|
|
|
## Why this is bad
|
|
|
|
The above code produces a fatal error in PHP.
|