Skip to content

Commit

Permalink
Automatically regenerate the files
Browse files Browse the repository at this point in the history
  • Loading branch information
Kharhamel authored Jul 27, 2021
1 parent c30ebce commit 6ad756d
Show file tree
Hide file tree
Showing 89 changed files with 4,689 additions and 2,733 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace Safe\Exceptions;

class IngresiiException extends \ErrorException implements SafeExceptionInterface
class DomException extends \ErrorException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace Safe\Exceptions;

class MysqlndMsException extends \ErrorException implements SafeExceptionInterface
class GettextException extends \ErrorException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace Safe\Exceptions;

class MysqlndQcException extends \ErrorException implements SafeExceptionInterface
class SodiumException extends \ErrorException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
{
Expand Down
23 changes: 1 addition & 22 deletions generated/apache.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,28 +110,6 @@ function apache_request_headers(): array
}


/**
* apache_reset_timeout resets the Apache write timer,
* which defaults to 300 seconds. With set_time_limit(0);
* ignore_user_abort(true) and periodic
* apache_reset_timeout calls, Apache can theoretically
* run forever.
*
* This function requires Apache 1.
*
* @throws ApacheException
*
*/
function apache_reset_timeout(): void
{
error_clear_last();
$result = \apache_reset_timeout();
if ($result === false) {
throw ApacheException::createFromPhpError();
}
}


/**
* Fetch all HTTP response headers. Works in the
* Apache, FastCGI, CLI, and FPM webservers.
Expand Down Expand Up @@ -219,3 +197,4 @@ function virtual(string $uri): void
throw ApacheException::createFromPhpError();
}
}

1 change: 1 addition & 0 deletions generated/apcu.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,4 @@ function apcu_sma_info(bool $limited = false): array
}
return $result;
}

28 changes: 14 additions & 14 deletions generated/array.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function array_replace_recursive(array $array, array ...$replacements): array
error_clear_last();
if ($replacements !== []) {
$result = \array_replace_recursive($array, ...$replacements);
} else {
}else {
$result = \array_replace_recursive($array);
}
if ($result === null) {
Expand Down Expand Up @@ -123,7 +123,7 @@ function array_replace(array $array, array ...$replacements): array
error_clear_last();
if ($replacements !== []) {
$result = \array_replace($array, ...$replacements);
} else {
}else {
$result = \array_replace($array);
}
if ($result === null) {
Expand All @@ -149,18 +149,18 @@ function array_replace(array $array, array ...$replacements): array
* reference. Then,
* any changes made to those elements will be made in the
* original array itself.
* @param mixed $userdata If the optional userdata parameter is supplied,
* @param mixed $arg If the optional arg parameter is supplied,
* it will be passed as the third parameter to the
* callback.
* @throws ArrayException
*
*/
function array_walk_recursive(array &$array, callable $callback, $userdata = null): void
function array_walk_recursive(array &$array, callable $callback, $arg = null): void
{
error_clear_last();
if ($userdata !== null) {
$result = \array_walk_recursive($array, $callback, $userdata);
} else {
if ($arg !== null) {
$result = \array_walk_recursive($array, $callback, $arg);
}else {
$result = \array_walk_recursive($array, $callback);
}
if ($result === false) {
Expand All @@ -170,7 +170,7 @@ function array_walk_recursive(array &$array, callable $callback, $userdata = nul


/**
* This function sorts an array such that array indices maintain their
* This function sorts an array in descending order such that array indices maintain their
* correlation with the array elements they are associated with.
*
* This is used mainly when sorting associative arrays where the actual
Expand Down Expand Up @@ -228,7 +228,7 @@ function arsort(array &$array, int $flags = SORT_REGULAR): void


/**
* This function sorts an array such that array indices maintain
* This function sorts an array in ascending order such that array indices maintain
* their correlation with the array elements they are associated
* with. This is used mainly when sorting associative arrays where
* the actual element order is significant.
Expand Down Expand Up @@ -285,7 +285,7 @@ function asort(array &$array, int $flags = SORT_REGULAR): void


/**
* Sorts an array by key in reverse order, maintaining key to data
* Sorts an array by key in descending order, maintaining key to data
* correlations. This is useful mainly for associative arrays.
*
* @param array $array The input array.
Expand Down Expand Up @@ -340,7 +340,7 @@ function krsort(array &$array, int $flags = SORT_REGULAR): void


/**
* Sorts an array by key, maintaining key to data correlations. This is
* Sorts an array by key in ascending order, maintaining key to data correlations. This is
* useful mainly for associative arrays.
*
* @param array $array The input array.
Expand Down Expand Up @@ -438,7 +438,7 @@ function natsort(array &$array): void


/**
* This function sorts an array in reverse order (highest to lowest).
* This function sorts an array by value in descending order.
*
* @param array $array The input array.
* @param int $flags The optional second parameter flags
Expand Down Expand Up @@ -511,8 +511,7 @@ function shuffle(array &$array): void


/**
* This function sorts an array. Elements will be arranged from
* lowest to highest when this function has completed.
* This function sorts an array by value in ascending order.
*
* @param array $array The input array.
* @param int $flags The optional second parameter flags
Expand Down Expand Up @@ -634,3 +633,4 @@ function usort(array &$array, callable $callback): void
throw ArrayException::createFromPhpError();
}
}

11 changes: 6 additions & 5 deletions generated/bzip2.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* @throws Bzip2Exception
*
*/
function bzclose($bz): void
function bzclose( $bz): void
{
error_clear_last();
$result = \bzclose($bz);
Expand All @@ -32,7 +32,7 @@ function bzclose($bz): void
* @throws Bzip2Exception
*
*/
function bzflush($bz): void
function bzflush( $bz): void
{
error_clear_last();
$result = \bzflush($bz);
Expand All @@ -57,7 +57,7 @@ function bzflush($bz): void
* @throws Bzip2Exception
*
*/
function bzread($bz, int $length = 1024): string
function bzread( $bz, int $length = 1024): string
{
error_clear_last();
$result = \bzread($bz, $length);
Expand All @@ -82,16 +82,17 @@ function bzread($bz, int $length = 1024): string
* @throws Bzip2Exception
*
*/
function bzwrite($bz, string $data, int $length = null): int
function bzwrite( $bz, string $data, int $length = null): int
{
error_clear_last();
if ($length !== null) {
$result = \bzwrite($bz, $data, $length);
} else {
}else {
$result = \bzwrite($bz, $data);
}
if ($result === false) {
throw Bzip2Exception::createFromPhpError();
}
return $result;
}

3 changes: 2 additions & 1 deletion generated/calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ function unixtojd(int $timestamp = null): int
error_clear_last();
if ($timestamp !== null) {
$result = \unixtojd($timestamp);
} else {
}else {
$result = \unixtojd();
}
if ($result === false) {
throw CalendarException::createFromPhpError();
}
return $result;
}

9 changes: 5 additions & 4 deletions generated/classobj.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,21 @@

/**
* Creates an alias named alias
* based on the user defined class original.
* based on the user defined class class.
* The aliased class is exactly the same as the original class.
*
* @param string $original The original class.
* @param string $class The original class.
* @param string $alias The alias name for the class.
* @param bool $autoload Whether to autoload if the original class is not found.
* @throws ClassobjException
*
*/
function class_alias(string $original, string $alias, bool $autoload = true): void
function class_alias(string $class, string $alias, bool $autoload = true): void
{
error_clear_last();
$result = \class_alias($original, $alias, $autoload);
$result = \class_alias($class, $alias, $autoload);
if ($result === false) {
throw ClassobjException::createFromPhpError();
}
}

9 changes: 5 additions & 4 deletions generated/com.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ function com_create_guid(): string
* @throws ComException
*
*/
function com_event_sink(object $variant, object $sink_object, $sink_interface = null): void
function com_event_sink(object $variant, object $sink_object, $sink_interface = null): void
{
error_clear_last();
if ($sink_interface !== null) {
$result = \com_event_sink($variant, $sink_object, $sink_interface);
} else {
}else {
$result = \com_event_sink($variant, $sink_object);
}
if ($result === false) {
Expand Down Expand Up @@ -145,7 +145,7 @@ function com_print_typeinfo(object $variant, string $dispatch_interface = null,
$result = \com_print_typeinfo($variant, $dispatch_interface, $display_sink);
} elseif ($dispatch_interface !== null) {
$result = \com_print_typeinfo($variant, $dispatch_interface);
} else {
}else {
$result = \com_print_typeinfo($variant);
}
if ($result === false) {
Expand Down Expand Up @@ -185,7 +185,7 @@ function variant_date_to_timestamp(object $variant): int
* @throws ComException
*
*/
function variant_round($value, int $decimals)
function variant_round( $value, int $decimals)
{
error_clear_last();
$result = \variant_round($value, $decimals);
Expand All @@ -194,3 +194,4 @@ function variant_round($value, int $decimals)
}
return $result;
}

Loading

0 comments on commit 6ad756d

Please sign in to comment.