Skip to content

Commit

Permalink
Quick'N Dirty fix for rules issues with phpunit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Jun 25, 2024
1 parent 85b702a commit 37d31b7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/SingletonRuleList.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ class SingletonRuleList
**/
public static function &getInstance($type, $entity)
{
//FIXME: can be removed when using phpunit 10 and process-isolation
if (defined('TU_USER')) {
$o = new self();
return $o;
}

static $instances = [];

if (!isset($instances[$type][$entity])) {
Expand Down

0 comments on commit 37d31b7

Please sign in to comment.