mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user