1.2.1221. Trait Methods

List the names of the methods in a trait.

<?php

trait t {
    private $property = 1;

    // This is a trait method name
    function foo() {
        // This is not a trait method
        return function($a) { return $a + 1; }
    }
}

?>

1.2.1221.1. Connex PHP features

1.2.1221.1.1. Specs

Short name

Traits/TraitMethod

Rulesets

All, Changed Behavior

Exakat since

0.8.4

PHP Version

All

Severity

Minor

Time To Fix

Slow (1 hour)

Precision

Very high

Available in

Entreprise Edition, Exakat Cloud