4.2.43. Set Type Void

Adds the void typehint to functions and methods, when possible.

4.2.43.1. Before

<?php

function foo() {
    return;
}

?>

4.2.43.2. After

<?php

function foo() : void {
    return;
}

?>

4.2.43.3. Suggested Analysis

4.2.43.5. Reverse Cobbler

4.2.43.6. Specs

Short Name

Functions/SetTypeVoid

Exakat version

2.3.0

Available in

Entreprise Edition, Exakat Cloud