File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 2424 <exclude name =" SlevomatCodingStandard.Classes.SuperfluousExceptionNaming.SuperfluousSuffix" />
2525 <exclude name =" SlevomatCodingStandard.Classes.SuperfluousTraitNaming.SuperfluousSuffix" />
2626 <exclude name =" SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming.SuperfluousPrefix" />
27+ <exclude name =" SlevomatCodingStandard.ControlStructures.RequireNullCoalesceEqualOperator" />
2728 <exclude name =" Squiz.Commenting.FunctionComment.InvalidNoReturn" />
2829 <exclude name =" Generic.Formatting.MultipleStatementAlignment" />
2930 </rule >
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class ExtendType
3636 public function __construct (array $ attributes = [], ?string $ class = null , ?string $ name = null )
3737 {
3838 $ className = isset ($ attributes ['class ' ]) ? ltrim ($ attributes ['class ' ], '\\' ) : null ;
39- $ className ??= $ class ;
39+ $ className = $ className ?? $ class ;
4040 if ($ className !== null && ! class_exists ($ className ) && ! interface_exists ($ className )) {
4141 throw ClassNotFoundException::couldNotFindClass ($ className );
4242 }
You can’t perform that action at this time.
0 commit comments