diff --git a/dev/build/phpstan/phpstan-baseline.neon b/dev/build/phpstan/phpstan-baseline.neon
index 788622de452..311e90abeb2 100644
--- a/dev/build/phpstan/phpstan-baseline.neon
+++ b/dev/build/phpstan/phpstan-baseline.neon
@@ -14760,12 +14760,6 @@ parameters:
count: 2
path: ../../../htdocs/core/tpl/extrafields_list_print_fields.tpl.php
- -
- message: '#^Variable \$object might not be defined\.$#'
- identifier: variable.undefined
- count: 1
- path: ../../../htdocs/core/tpl/extrafields_list_search_input.tpl.php
-
-
message: '#^Variable \$extrafields might not be defined\.$#'
identifier: variable.undefined
@@ -14778,12 +14772,6 @@ parameters:
count: 2
path: ../../../htdocs/core/tpl/extrafields_list_search_param.tpl.php
- -
- message: '#^Variable \$object might not be defined\.$#'
- identifier: variable.undefined
- count: 1
- path: ../../../htdocs/core/tpl/extrafields_list_search_param.tpl.php
-
-
message: '#^Variable \$param might not be defined\.$#'
identifier: variable.undefined
@@ -14802,30 +14790,12 @@ parameters:
count: 1
path: ../../../htdocs/core/tpl/extrafields_list_search_sql.tpl.php
- -
- message: '#^Variable \$object might not be defined\.$#'
- identifier: variable.undefined
- count: 1
- path: ../../../htdocs/core/tpl/extrafields_list_search_sql.tpl.php
-
-
message: '#^Variable \$sql might not be defined\.$#'
identifier: variable.undefined
count: 7
path: ../../../htdocs/core/tpl/extrafields_list_search_sql.tpl.php
- -
- message: '#^Variable \$langs might not be defined\.$#'
- identifier: variable.undefined
- count: 1
- path: ../../../htdocs/core/tpl/extrafields_list_search_title.tpl.php
-
- -
- message: '#^Variable \$object might not be defined\.$#'
- identifier: variable.undefined
- count: 1
- path: ../../../htdocs/core/tpl/extrafields_list_search_title.tpl.php
-
-
message: '#^Variable \$param might not be defined\.$#'
identifier: variable.undefined
diff --git a/htdocs/core/tpl/extrafields_list_search_input.tpl.php b/htdocs/core/tpl/extrafields_list_search_input.tpl.php
index d9c860a050f..7582f21e471 100644
--- a/htdocs/core/tpl/extrafields_list_search_input.tpl.php
+++ b/htdocs/core/tpl/extrafields_list_search_input.tpl.php
@@ -1,5 +1,28 @@
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ */
+
+/**
+ * @var Conf $conf
+ * @var DoliDB $db
+ * @var CommonObject $object
+ */
+
print ''."\n";
// Protection to avoid direct call of template
diff --git a/htdocs/core/tpl/extrafields_list_search_param.tpl.php b/htdocs/core/tpl/extrafields_list_search_param.tpl.php
index 4b539cfc0c3..ebb49d9a444 100644
--- a/htdocs/core/tpl/extrafields_list_search_param.tpl.php
+++ b/htdocs/core/tpl/extrafields_list_search_param.tpl.php
@@ -1,5 +1,27 @@
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ */
+
+/**
+ * @var Conf $conf
+ * @var CommonObject $object
+ */
+
// Protection to avoid direct call of template
if (empty($conf) || !is_object($conf)) {
print "Error, template page can't be called as URL";
diff --git a/htdocs/core/tpl/extrafields_list_search_sql.tpl.php b/htdocs/core/tpl/extrafields_list_search_sql.tpl.php
index 6901b9a3472..a75c249c352 100644
--- a/htdocs/core/tpl/extrafields_list_search_sql.tpl.php
+++ b/htdocs/core/tpl/extrafields_list_search_sql.tpl.php
@@ -1,5 +1,27 @@
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ */
+
+/**
+ * @var Conf $conf
+ * @var CommonObject $object
+ */
+
// Protection to avoid direct call of template
if (empty($conf) || !is_object($conf)) {
print "Error, template page can't be called as URL";
diff --git a/htdocs/core/tpl/extrafields_list_search_title.tpl.php b/htdocs/core/tpl/extrafields_list_search_title.tpl.php
index d5b4979dcce..b225d507022 100644
--- a/htdocs/core/tpl/extrafields_list_search_title.tpl.php
+++ b/htdocs/core/tpl/extrafields_list_search_title.tpl.php
@@ -1,6 +1,27 @@
+ * Copyright (C) 2025 Frédéric France
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ */
+
+/**
+ * @var Conf $conf
+ * @var CommonObject $object
+ * @var ?Translate $langs
*/
// Protection to avoid direct call of template