To Reproduce
Steps to reproduce the behavior: copy-paste this script to the IDE
<?php
declare(strict_types=1);
namespace ns1\ns2;
interface Test60 {
public function fn1(int $a);
function fn2(int $a); // this statement should trigger warning
}
abstract class Test60b {
public abstract function fn1(int $a);
abstract function fn2(int $a); // this statement should trigger warning
}
class Test60c {
public function fn1(int $a) {}
function fn2(int $a) {} // this statement should trigger warning
}
trait Test60d {
public function fn1(int $a) {}
function fn2(int $a) {} // this statement should trigger warning
}
Bug Description Missing validation on missing visibility modifier.
Eclipse environment Version: 2023-06 (4.28.0) Build id: 20230608-1333 PDT: 8.0.0.202306050832
System
To Reproduce Steps to reproduce the behavior: copy-paste this script to the IDE