You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assertType('non-empty-list<Discussion13395\\View>&hasOffsetValue(0, Discussion13395\View)', $views); // could be just non-empty-list<Discussion13395\\View>
52
+
53
+
return$views;
54
+
}
55
+
56
+
/**
57
+
* @param non-empty-list<array{
58
+
* value: ?string,
59
+
* }> $rows
60
+
* @return non-empty-list<View>|null
61
+
*/
62
+
privatefunctionbuildViews2(array$rows) : ?array
63
+
{
64
+
if ($rows[0]['value'] === null) {
65
+
returnnull;
66
+
}
67
+
68
+
if ($rows[1]['value'] === null) {
69
+
returnnull;
70
+
}
71
+
72
+
$views = \array_map(
73
+
staticfunction (array$row) : View {
74
+
\assert($row['value'] !== null);
75
+
returnnewView(
76
+
$row['value'],
77
+
);
78
+
},
79
+
$rows,
80
+
);
81
+
82
+
assertType('non-empty-list<Discussion13395\View>&hasOffsetValue(0, Discussion13395\View)&hasOffsetValue(1, Discussion13395\View)', $views); // could be just &hasOffsetValue(1, Discussion13395\View)
0 commit comments