Skip to content

Commit abe0f3a

Browse files
committed
Removing Slevomat PHP 7.4+ only rule
1 parent 566c206 commit abe0f3a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

phpcs.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
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>

src/Annotations/ExtendType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)