4.2.26. Remove Visibility¶
Removes the visibility on constants, properties and methods.
For properties, the visibility is reset to public.
4.2.26.1. Before¶
<?php
class x {
private const x = 1;
private $p = 2;
private function foo() {}
private function __construct() {}
}
?>
4.2.26.2. After¶
<?php
class x {
const x = 1;
public $p = 2;
function foo() {}
function __construct() {}
}
?>
4.2.26.3. Specs¶
Short Name |
Classes/RemoveVisibility |
Exakat version |
2.3.0 |
Available in |