1.2.1212. 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.1212.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

Features

method, trait

Available in

Entreprise Edition, Exakat Cloud