mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
settype($val, $parameter->getType()->getName());
|
settype($val, $parameter->getType()->getName());
|
||||||
$params[] = $val;
|
$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