1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-05 21:19:03 +01:00
psalm/docs/running_psalm/issues/Trace.md
Grégoire Paris 09dd8c370f
Make it easier to find how to promote Trace
I have used this once before then forgot how to do it, which is a shame
because this is super handy.
2023-04-26 21:41:24 +02:00

16 lines
277 B
Markdown

# 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