Update website
This commit is contained in:
parent
4413528994
commit
1d90fbf296
6865 changed files with 1091082 additions and 0 deletions
60
admin/phpMyAdmin/vendor/thecodingmachine/safe/generated/var.php
vendored
Normal file
60
admin/phpMyAdmin/vendor/thecodingmachine/safe/generated/var.php
vendored
Normal file
|
@ -0,0 +1,60 @@
|
|||
<?php
|
||||
|
||||
namespace Safe;
|
||||
|
||||
use Safe\Exceptions\VarException;
|
||||
|
||||
/**
|
||||
* Set the type of variable var to
|
||||
* type.
|
||||
*
|
||||
* @param mixed $var The variable being converted.
|
||||
* @param string $type Possibles values of type are:
|
||||
*
|
||||
*
|
||||
*
|
||||
* "boolean" or "bool"
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* "integer" or "int"
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* "float" or "double"
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* "string"
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* "array"
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* "object"
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* "null"
|
||||
*
|
||||
*
|
||||
*
|
||||
* @throws VarException
|
||||
*
|
||||
*/
|
||||
function settype(&$var, string $type): void
|
||||
{
|
||||
error_clear_last();
|
||||
$result = \settype($var, $type);
|
||||
if ($result === false) {
|
||||
throw VarException::createFromPhpError();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue