mirror of
https://github.com/danog/psalm.git
synced 2024-12-05 21:19:03 +01:00
09dd8c370f
I have used this once before then forgot how to do it, which is a shame because this is super handy.
16 lines
277 B
Markdown
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
|