Skip to content

Commit 445ccdb

Browse files
authored
Fix PHPStan: remove unnecessary null coalescing on non-nullable bool properties (#348)
1 parent 0a89c20 commit 445ccdb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Actions/Incident/CreateIncident.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ private function parseTemplate(IncidentTemplate $template, CreateIncidentRequest
5454
'name' => $data->name,
5555
'status' => $data->status,
5656
'message' => $data->message ?? null,
57-
'visible' => $data->visible ?? false,
58-
'notify' => $data->notifications ?? false,
59-
'stickied' => $data->stickied ?? false,
57+
'visible' => $data->visible,
58+
'notify' => $data->notifications,
59+
'stickied' => $data->stickied,
6060
'occurred_at' => $data->occurredAt ?? Carbon::now(),
6161
'component' => $data->componentId ? Component::find($data->componentId) : null,
6262
'component_status' => $data->componentStatus ?? null,

0 commit comments

Comments
 (0)