mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-30 12:18:43 +09:00
Replace GetClass (#342)
https://php.watch/versions/8.0/deprecated-reflectionparameter-methods#getClass
This commit is contained in:
1 parent
dff8f103cd
commit
4c21ee7cb4
1 file changed
+2
-2
@@ -112,8 +112,8 @@ class Service implements InjectionAwareInterface
|
||||
$p = $method->getParameters();
|
||||
if ($method->isPublic()
|
||||
&& isset($p[0])
|
||||
&& $p[0]->getclass()
|
||||
&& in_array($p[0]->getclass()->getName(), ['Box_Event', '\Box_Event'])) {
|
||||
&& $p[0]->getType() && !$p[0]->getType()->isBuiltin() ? new \ReflectionClass($p[0]->getType()->getName()) : null
|
||||
&& in_array($p[0]->getType() && !$p[0]->getType()->isBuiltin() ? new \ReflectionClass($p[0]->getType()->getName()) : null, ['Box_Event', '\Box_Event'])) {
|
||||
$this->connect(['event' => $method->getName(), 'mod' => $mod->getName()]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user