mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
VKAPI: PHP 8.2 fixes
This commit is contained in:
parent
fd11dfcdd9
commit
a2473c68fe
1 changed files with 7 additions and 2 deletions
|
@ -233,8 +233,13 @@ final class VKAPIPresenter extends OpenVKPresenter
|
||||||
$this->badMethodCall($object, $method, $parameter->getName());
|
$this->badMethodCall($object, $method, $parameter->getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
settype($val, $parameter->getType()->getName());
|
try {
|
||||||
$params[] = $val;
|
settype($val, $parameter->getType()->getName());
|
||||||
|
$params[] = $val;
|
||||||
|
} catch (\Throwable $e) {
|
||||||
|
// Just ignore the exception, since
|
||||||
|
// some args are intended for internal use
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
define("VKAPI_DECL_VER", $this->requestParam("v") ?? "4.100", false);
|
define("VKAPI_DECL_VER", $this->requestParam("v") ?? "4.100", false);
|
||||||
|
|
Loading…
Reference in a new issue