1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-03 10:07:52 +01:00
psalm/docs/running_psalm/issues/Trace.md

16 lines
277 B
Markdown
Raw Normal View History

# Trace
Not really an issue. Just reports the type of a variable when using
[`@psalm-trace`](../annotating_code/supported_annotations.md#psalm-trace).
```php
<?php
/** @psalm-trace $x */
$x = getmypid();
```
## How to fix
Use it for debugging purposes, not for production