From ed86100a4b552964db341355d45637003effedf1 Mon Sep 17 00:00:00 2001 From: skycel Date: Wed, 5 Feb 2025 01:12:15 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20-=20Typage=20strict=20et=20retou?= =?UTF-8?q?r=20bool=C3=A9en=20ajout=C3=A9=20=C3=A0=20la=20fonction=20tree?= =?UTF-8?q?=5Fget=5Ftopbar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/custom-template.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/custom-template.inc.php b/includes/custom-template.inc.php index 0e49266..ec8aa5a 100644 --- a/includes/custom-template.inc.php +++ b/includes/custom-template.inc.php @@ -8,7 +8,7 @@ * @param array $args Optional. Additional arguments to pass to the template. * @return bool True if the template was found and loaded, false otherwise. */ -function tree_get_topbar($name = null, $args = array()) { +function tree_get_topbar(string $name = null, array $args = array()): bool { do_action("get_topbar", $name, $args); @@ -23,4 +23,5 @@ function tree_get_topbar($name = null, $args = array()) { if ( ! locate_template( $templates, true, true, $args ) ) { return false; } + return true; } \ No newline at end of file