File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed
src/Standards/PSR12/Docs/Functions Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change 77 <code_comparison >
88 <code title =" Valid: no whitespace used." >
99 <![CDATA[
10- public function functionName(?string $arg1, ?int $arg2): ?string
11- {
10+ public function functionName(
11+ ?string $arg1,
12+ ?int $arg2
13+ ): ?string {
1214}
1315 ]]>
1416 </code >
1517 <code title =" Invalid: superfluous whitespace used." >
1618 <![CDATA[
17- public function functionName(? string $arg1, ? int $arg2): ? string
19+ public function functionName(
20+ ? string $arg1,
21+ ? int $arg2
22+ ): ? string {
23+ }
24+ ]]>
25+ </code >
26+ </code_comparison >
27+ <code_comparison >
28+ <code title =" Valid: no unexpected characters." >
29+ <![CDATA[
30+ public function foo(?int $arg): ?string
1831{
1932}
2033 ]]>
2134 </code >
2235 <code title =" Invalid: unexpected characters used." >
2336 <![CDATA[
24- public function functionName (? /* nullable for a reason */ string $arg1 ): ?
37+ public function bar (? /* comment */ int $arg ): ?
2538 // nullable for a reason
2639 string
2740{
You can’t perform that action at this time.
0 commit comments