2023-05-03 11:06:20 +02:00
|
|
|
== Why is this an issue?
|
|
|
|
|
2021-06-08 14:23:48 +02:00
|
|
|
When present, the ``++abstract++`` and ``++final++`` declarations should precede the visibility declaration.
|
|
|
|
|
|
|
|
|
|
|
|
When present, the ``++static++`` declaration should come after the visibility declaration.
|
|
|
|
|
|
|
|
|
2023-05-03 11:06:20 +02:00
|
|
|
=== Compliant solution
|
2021-06-08 14:23:48 +02:00
|
|
|
|
2022-02-04 17:28:24 +01:00
|
|
|
[source,php]
|
2021-06-08 14:23:48 +02:00
|
|
|
----
|
|
|
|
<?php
|
|
|
|
abstract class ClassName
|
|
|
|
{
|
|
|
|
protected static $foo;
|
|
|
|
|
|
|
|
abstract protected function zim();
|
|
|
|
|
|
|
|
final public static function bar()
|
|
|
|
{
|
|
|
|
// method body
|
|
|
|
}
|
|
|
|
}
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
|
|
ifdef::env-github,rspecator-view[]
|
2021-06-08 15:52:13 +02:00
|
|
|
'''
|
2021-06-08 14:23:48 +02:00
|
|
|
== Comments And Links
|
|
|
|
(visible only on this page)
|
|
|
|
|
2023-05-25 14:18:12 +02:00
|
|
|
=== duplicates: S1124
|
|
|
|
|
2021-06-08 14:23:48 +02:00
|
|
|
endif::env-github,rspecator-view[]
|