Skip to content

Should WordPress.PHP.DevelopmentFunctions.error_log_print_r be relaxed a little? #2635

@thomas-price

Description

@thomas-price

Currently, WordPress.PHP.DevelopmentFunctions.error_log_print_r states:
print_r() found. Debug code should not normally be used in production.

Should this be modified to allow print_r(), providing the return is true?
Example: print_r( $value, true)

Reference: https://github.com/spaze/phpstan-disallowed-calls/blob/main/disallowed-dangerous-calls.neon

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions