refactor: susun semula struktur folder — Laravel source ke src/
This commit is contained in:
20
vendor/thecodingmachine/safe/generated/8.1/var.php
vendored
Normal file
20
vendor/thecodingmachine/safe/generated/8.1/var.php
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Safe;
|
||||
|
||||
use Safe\Exceptions\VarException;
|
||||
|
||||
/**
|
||||
* @param mixed $var
|
||||
* @param string $type
|
||||
* @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