Skip to content

Commit cd4e15f

Browse files
committed
AC-15344:: Add change level to breaking change table report in SVC
1 parent e386f84 commit cd4e15f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Comparator/Signature.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,13 @@ public static function analyze(array $parametersA, array $parametersB): array
149149
if ($parametersA[$i]->type !== null && $parametersB[$i]->type !== null) {
150150
$changes['parameter_typing_changed'] = true;
151151
// Custom: detect nullable added
152-
if ($typeBefore instanceof NullableType
152+
if (
153+
$typeBefore instanceof NullableType
153154
&& !$typeAfter instanceof NullableType
154155
) {
155156
$changes['parameter_nullable_type_added'] = true;
156-
} elseif (!$typeBefore instanceof NullableType
157+
} elseif (
158+
!$typeBefore instanceof NullableType
157159
&& $typeAfter instanceof NullableType
158160
) {
159161
$changes['parameter_nullable_type_removed'] = true;

0 commit comments

Comments
 (0)