Skip to content

Commit

Permalink
Update xlvoInitialisation.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Saaweel authored Sep 16, 2024
1 parent 1fdc084 commit 39b5012
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Context/xlvoInitialisation.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,15 @@ public static function initDependencyInjection()
* @param string $a_class
* @param null $a_source_file
*/
protected static function initGlobal($a_name, $a_class, $a_source_file = null): void
protected static function initGlobal(string $a_name, $a_class, ?string $a_source_file = null, ?bool $destroy_existing = false): void
{
global $DIC;

if ($DIC->offsetExists($a_name)) {
$DIC->offsetUnset($a_name);
}

parent::initGlobal($a_name, $a_class, $a_source_file);
parent::initGlobal($a_name, $a_class, $a_source_file, $destroy_existing);
}


Expand Down

0 comments on commit 39b5012

Please sign in to comment.