From 9c4793526c46deed2b20f1a1ed494d69c4f58e97 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Thu, 2 Sep 2021 08:50:08 +0200 Subject: psalm: No need for null $opts param in select_field. It's initialized to an empty array if not specified, that should be good enough, and don't trip up iterating over it. --- includes/view-helpers/select_field.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/view-helpers/select_field.php') diff --git a/includes/view-helpers/select_field.php b/includes/view-helpers/select_field.php index 816f8ef..e72fc40 100644 --- a/includes/view-helpers/select_field.php +++ b/includes/view-helpers/select_field.php @@ -19,7 +19,7 @@ namespace EternalTerror\ViewHelpers; */ function select_field( string $name, - ?array $opts = [], + array $opts = [], $selected = null, string $blank = "Please select...") : string { -- cgit v1.2.3