File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,3 +45,12 @@ function test()
4545function intersection ($ param )
4646{
4747}
48+
49+ /**
50+ * Void must be last, after null.
51+ *
52+ * @return int|void|null
53+ */
54+ function voidAfterNull ()
55+ {
56+ }
Original file line number Diff line number Diff line change @@ -45,3 +45,12 @@ function test()
4545function intersection($param)
4646{
4747}
48+
49+ /**
50+ * Void must be last, after null.
51+ *
52+ * @return int|null|void
53+ */
54+ function voidAfterNull()
55+ {
56+ }
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ public function getWarningList($testFile = '')
3232 27 => 1 ,
3333 37 => 1 ,
3434 42 => 1 ,
35+ 52 => 1 ,
3536 ];
3637
3738 default :
Original file line number Diff line number Diff line change 233233 <property name =" withSpacesAroundOperators" value =" no" />
234234 <property name =" withSpacesInsideParentheses" value =" no" />
235235 <property name =" shortNullable" value =" yes" />
236- <property name =" nullPosition" value =" last" />
237236 </properties >
238237 <exclude-pattern >*/tests/*</exclude-pattern >
239238 </rule >
258257 <rule ref =" SlevomatCodingStandard.ControlStructures.RequireNullCoalesceEqualOperator" />
259258 <rule ref =" SlevomatCodingStandard.ControlStructures.RequireNullSafeObjectOperator" />
260259 <rule ref =" SlevomatCodingStandard.Classes.RequireSelfReference" />
261- <rule ref =" SlevomatCodingStandard.TypeHints.NullTypeHintOnLastPosition" />
262260
263261 <!-- phpcs Zend sniffs -->
264262 <rule ref =" Zend.NamingConventions.ValidVariableName" >
You can’t perform that action at this time.
0 commit comments