mirror of
https://github.com/openvk/openvk
synced 2024-11-15 19:49:14 +03:00
Finaly, Tarhun
This commit is contained in:
parent
5fae56f6bf
commit
82fcb18c4a
1 changed files with 5 additions and 3 deletions
|
@ -236,10 +236,12 @@ final class VKAPIPresenter extends OpenVKPresenter
|
||||||
try {
|
try {
|
||||||
// Проверка типа параметра
|
// Проверка типа параметра
|
||||||
$type = $parameter->getType();
|
$type = $parameter->getType();
|
||||||
if (($type && !$type->isBuiltin()) || is_null($val))
|
if (($type && !$type->isBuiltin()) || is_null($val)) {
|
||||||
$params[] = $val;
|
$params[] = $val;
|
||||||
else
|
} else {
|
||||||
$params[] = settype($val, $type->getName());
|
settype($val, $parameter->getType()->getName());
|
||||||
|
$params[] = $val;
|
||||||
|
}
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
// Just ignore the exception, since
|
// Just ignore the exception, since
|
||||||
// some args are intended for internal use
|
// some args are intended for internal use
|
||||||
|
|
Loading…
Reference in a new issue