4.2.24. Remove Type

This cobbler remove the type mentions in the code. This might yield some speed when executing, since those tests will be not conveyed at runtime.

Types from arguments, method returns and properties are all removed.

4.2.24.1. Before

<?php

class x {
    private string $p;

    function foo(D\E $arg) : void {

    }
}

?>

4.2.24.2. After

<?php

class x {
    private $p;

    function foo($arg) {

    }
}

?>

4.2.24.3. Parameters

Name

Default

Type

Description

type_to_remove

all

data

A comma separated list of types to remove. For example : never,string,ABC;. Use ‘All’ for everyt type.

4.2.24.4. Suggested Analysis

4.2.24.5. Reverse Cobbler

4.2.24.6. Specs

Short Name

Functions/RemoveTypes

Exakat version

2.2.5

Available in

Entreprise Edition, Exakat Cloud