Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 446 Bytes

ForbiddenCode.md

File metadata and controls

23 lines (17 loc) · 446 Bytes

ForbiddenCode

Emitted when Psalm encounters a var_dump, exec or similar expression that may make your code more vulnerable

<?php

var_dump("bah");

This functions list can be extended by configuring forbiddenFunctions in psalm.xml

<?xml version="1.0"?>
<psalm>
    <!-- other configs -->

    <forbiddenFunctions>
        <function name="dd"/>
        <function name="var_dump"/>
    </forbiddenFunctions>
</psalm>