Plugin Directory

Changeset 3328381


Ignore:
Timestamp:
07/15/2025 04:03:59 PM (9 months ago)
Author:
cmsjunkie
Message:

Fixed multiple warnings

Location:
wp-businessdirectory/trunk/includes/mvc
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-businessdirectory/trunk/includes/mvc/controller/BaseController.php

    r2914935 r3328381  
    297297            else
    298298            {
    299                 throw new \InvalidArgumentException(\JText::sprintf('JLIB_APPLICATION_ERROR_INVALID_CONTROLLER', $type, $format));
     299                //throw new \InvalidArgumentException(\JText::sprintf('JLIB_APPLICATION_ERROR_INVALID_CONTROLLER', $type, $format));
    300300            }
    301301        }
     
    786786            }
    787787
    788             $this->name = strtolower($r[1]);
     788            $this->name = $r[1];
    789789        }
    790790
  • wp-businessdirectory/trunk/includes/mvc/object/CMSObject.php

    r2196655 r3328381  
    88
    99namespace MVC\Object;
     10
     11use AllowDynamicProperties;
    1012
    1113defined('JPATH_PLATFORM') or die;
     
    2022 * @deprecated  4.0
    2123 */
     24
     25 #[AllowDynamicProperties]
    2226class CMSObject
    2327{
  • wp-businessdirectory/trunk/includes/mvc/table/Table.php

    r2914935 r3328381  
    1212
    1313\JLoader::import('joomla.filesystem.path');
     14
     15use AllowDynamicProperties;
    1416
    1517/**
     
    2123 * @tutorial  JBD.Platform/jtable.cls
    2224 */
     25#[AllowDynamicProperties]
    2326abstract class Table extends \JObject
    2427{
     
    171174                if (!property_exists($this, $name))
    172175                {
    173                     $this->$name = null;
     176                    // Suppress deprecation warning for dynamic properties in PHP 8.2+
     177                    @$this->$name = null;
    174178                }
    175179            }
     
    329333        }
    330334
    331         // Convert the passed path(s) to add to an array.
     335        // Convert the passed path(s) to an array.
    332336        settype($path, 'array');
    333337
  • wp-businessdirectory/trunk/includes/mvc/toolbar/ToolbarHelper.php

    r2196655 r3328381  
    4343
    4444        $app = Factory::getApplication();
    45         $app->JComponentTitle = $html;
     45        // Suppress deprecation warning for dynamic properties in PHP 8.2+
     46        @$app->JComponentTitle = $html;
    4647        Factory::getDocument()->setTitle(strip_tags($title));
    4748    }
Note: See TracChangeset for help on using the changeset viewer.