Back to Psalm

Trace

docs/running_psalm/issues/Trace.md

6.16.1276 B
Original Source

Trace

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

php
<?php

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

How to fix

Use it for debugging purposes, not for production