Skip to content

Commit 04372b1

Browse files
committed
Missing protected static in TopicHandlerRegistry
TopicHandlerRegistry.php extends Singleton but does not declare its own protected static $instance field. The Singleton base class explicitly requires this. Without it, the registry may share the parent's static instance with other Singleton subclasses, causing collisions.
1 parent 2ea9d5f commit 04372b1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/BusinessLogic/ConfigurationWebhookAPI/Handlers/TopicHandlerRegistry.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
*/
1313
class TopicHandlerRegistry extends Singleton
1414
{
15+
/**
16+
* @var static
17+
*/
18+
protected static $instance;
19+
1520
/**
1621
* Map of registered topic handlers
1722
*

0 commit comments

Comments
 (0)