Fix missing CSS class for open_id banners and more PHP warnings (#7575)

* Fix PHP 8.4 warnings
Strings are no longer allowed to be defaulted to null without the null declaration

* Fix missing css class for open_id banners
This commit is contained in:
frytimo
2025-10-16 15:08:19 -03:00
committed by GitHub
parent 940002ab64
commit e0f7e38e84
2 changed files with 10 additions and 9 deletions

View File

@@ -142,11 +142,11 @@ class settings implements clear_cache {
/**
* Get the value utilizing the hierarchical overriding technique
* @param string $category Returns all settings when empty or the default value if the settings array is null
* @param string $subcategory Returns the array of category items when empty or the default value if the category array is null
* @param string|null $category Returns all settings when empty or the default value if the settings array is null
* @param string|null $subcategory Returns the array of category items when empty or the default value if the category array is null
* @param mixed $default_value allows default value returned if category and subcategory not found
*/
public function get(string $category = null, string $subcategory = null, $default_value = null) {
public function get(?string $category = null, ?string $subcategory = null, $default_value = null) {
//incremental refinement from all settings to a single setting
if (empty($category)) {