1 | <?php |
||
2 | class WPUpdatePhp { |
||
|
|||
3 | /** @var String */ |
||
4 | private $minimum_version; |
||
5 | |||
6 | /** |
||
7 | * @param $minimum_version |
||
8 | */ |
||
9 | public function __construct($minimum_version) { |
||
12 | |||
13 | /** |
||
14 | * @param $version |
||
15 | * |
||
16 | * @return bool |
||
17 | */ |
||
18 | public function does_it_meet_required_php_version($version) { |
||
26 | |||
27 | /** |
||
28 | * @param $version |
||
29 | * |
||
30 | * @return boolean |
||
31 | */ |
||
32 | private function is_minimum_php_version($version) { |
||
35 | |||
36 | /** |
||
37 | * @return void |
||
38 | */ |
||
39 | private function load_minimum_required_version_notice() { |
||
44 | |||
45 | public function admin_notice() { |
||
50 | } |
||
51 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.