aaronhipple/sampler

View on GitHub
src/AbstractSampleTestCase.php

Summary

Maintainability
A
0 mins
Test Coverage

The method testSample() contains an eval expression.
Wontfix

        eval($code);
Severity: Minor
Found in src/AbstractSampleTestCase.php by phpmd

EvalExpression

Since: 0.2

An eval-expression is untestable, a security risk and bad practice. Therefore it should be avoided. Consider to replace the eval-expression with regular code.

Example

class Foo {
    public function bar($param)  {
        if ($param === 42) {
            eval('$param = 23;');
        }
    }
}

Source https://phpmd.org/rules/design.html#evalexpression

There are no issues that match your filters.

Category
Status