allow vendord
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 32s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 32s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
This commit is contained in:
60
vendor/thecodingmachine/safe/generated/8.2/var.php
vendored
Normal file
60
vendor/thecodingmachine/safe/generated/8.2/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();
|
||||
$safeResult = \settype($var, $type);
|
||||
if ($safeResult === false) {
|
||||
throw VarException::createFromPhpError();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user