1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-02 17:52:45 +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

277 B

Trace

Not really an issue. Just reports the type of a variable when using @psalm-trace.

<?php

/** @psalm-trace $x */
$x = getmypid();

How to fix

Use it for debugging purposes, not for production