File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
src/Standards/Generic/Tests/CodeAnalysis Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -32,3 +32,25 @@ final readonly class Foo_Bar {
3232 public final function fooBar () {}
3333 final protected function fool () {}
3434}
35+
36+ final class Final_Class_Final_Constants {
37+ final public const FINAL_PUBLIC_CONST = 23 ;
38+ protected final const FINAL_PROTECTED_CONST = 'foo ' ;
39+ }
40+
41+ final class Final_Class_Regular_Constants {
42+ public const PUBLIC_CONST = 23 ;
43+ protected const PROTECTED_CONST = 'foo ' ;
44+ private const PRIVATE_CONST = true ;
45+ }
46+
47+ class Regular_Class_Final_Constants {
48+ public final const FINAL_PUBLIC_CONST = 23 ;
49+ final protected const FINAL_PROTECTED_CONST = 'foo ' ;
50+ }
51+
52+ class Regular_Class_Regular_Constants {
53+ public const PUBLIC_CONST = 23 ;
54+ protected const PROTECTED_CONST = 'foo ' ;
55+ private const PRIVATE_CONST = true ;
56+ }
Original file line number Diff line number Diff line change @@ -56,6 +56,8 @@ public function getWarningList($testFile='')
5656 18 => 1 ,
5757 32 => 1 ,
5858 33 => 1 ,
59+ 37 => 1 ,
60+ 38 => 1 ,
5961 ];
6062 default :
6163 return [];
You can’t perform that action at this time.
0 commit comments