summaryrefslogtreecommitdiffstats
path: root/includes/view-helpers
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-09-02 08:50:08 +0200
committerHarald Eilertsen <haraldei@anduin.net>2021-09-02 08:50:08 +0200
commit9c4793526c46deed2b20f1a1ed494d69c4f58e97 (patch)
treea8456b040ad2729574c188811d87dcb2e6a2755d /includes/view-helpers
parentfb8d2649e17c94458db247925b796f5ae2141b0d (diff)
downloadgigologadmin-9c4793526c46deed2b20f1a1ed494d69c4f58e97.tar.gz
gigologadmin-9c4793526c46deed2b20f1a1ed494d69c4f58e97.tar.bz2
gigologadmin-9c4793526c46deed2b20f1a1ed494d69c4f58e97.zip
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.
Diffstat (limited to 'includes/view-helpers')
-rw-r--r--includes/view-helpers/select_field.php2
1 files changed, 1 insertions, 1 deletions
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
{