Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically regenerate the files #399

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -1,7 +1,7 @@
<?php
namespace Safe\Exceptions;

class GmpException extends \ErrorException implements SafeExceptionInterface
class RnpException extends \ErrorException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
{
Expand Down
1 change: 1 addition & 0 deletions generated/apache.php
Expand Up @@ -197,3 +197,4 @@ function virtual(string $uri): void
throw ApacheException::createFromPhpError();
}
}

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

18 changes: 0 additions & 18 deletions generated/array.php
Expand Up @@ -39,21 +39,3 @@ function array_walk_recursive(&$array, callable $callback, $arg = null): void
}
}


/**
* This function shuffles (randomizes the order of the elements in) an array.
* It uses a pseudo random number generator that is not suitable for
* cryptographic purposes.
*
* @param array $array The array.
* @throws ArrayException
*
*/
function shuffle(array &$array): void
{
error_clear_last();
$safeResult = \shuffle($array);
if ($safeResult === false) {
throw ArrayException::createFromPhpError();
}
}
1 change: 1 addition & 0 deletions generated/bzip2.php
Expand Up @@ -95,3 +95,4 @@ function bzwrite($bz, string $data, int $length = null): int
}
return $safeResult;
}

1 change: 1 addition & 0 deletions generated/calendar.php
Expand Up @@ -28,3 +28,4 @@ function unixtojd(int $timestamp = null): int
}
return $safeResult;
}

4 changes: 3 additions & 1 deletion generated/classobj.php
Expand Up @@ -11,7 +11,8 @@
*
* @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.
* @param bool $autoload Whether to autoload
* if the original class is not found.
* @throws ClassobjException
*
*/
Expand All @@ -23,3 +24,4 @@ function class_alias(string $class, string $alias, bool $autoload = true): void
throw ClassobjException::createFromPhpError();
}
}

1 change: 1 addition & 0 deletions generated/com.php
Expand Up @@ -194,3 +194,4 @@ function variant_round($value, int $decimals)
}
return $safeResult;
}

1 change: 1 addition & 0 deletions generated/cubrid.php
Expand Up @@ -2036,3 +2036,4 @@ function cubrid_set_query_timeout($req_identifier, int $timeout): void
throw CubridException::createFromPhpError();
}
}