mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 10:05:43 +02:00
allow accessibility for PHP <= 8.0
This commit is contained in:
parent
abe7e95dd3
commit
df8c167aa9
1 changed files with 2 additions and 0 deletions
|
@ -58,6 +58,7 @@ class HookEventBridgeTest extends TestCase
|
|||
$event = new DataFilterEvent('test', ['original']);
|
||||
|
||||
$reflectionProperty = new \ReflectionProperty(HookEventBridge::class, 'callHook');
|
||||
$reflectionProperty->setAccessible(true);
|
||||
|
||||
$reflectionProperty->setValue(null, function (string $name, $data) {
|
||||
$this->assertSame('test', $name);
|
||||
|
@ -87,6 +88,7 @@ class HookEventBridgeTest extends TestCase
|
|||
$event = new HtmlFilterEvent($name, 'original');
|
||||
|
||||
$reflectionProperty = new \ReflectionProperty(HookEventBridge::class, 'callHook');
|
||||
$reflectionProperty->setAccessible(true);
|
||||
|
||||
$reflectionProperty->setValue(null, function (string $name, $data) use($expected) {
|
||||
$this->assertSame($expected, $name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue