Skip to content

Commit

Permalink
Merge 6be0659 into 31d2c13
Browse files Browse the repository at this point in the history
  • Loading branch information
moufmouf committed Nov 8, 2018
2 parents 31d2c13 + 6be0659 commit 8eb422e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 27 deletions.
24 changes: 0 additions & 24 deletions generated/funchand.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,30 +110,6 @@ function forward_static_call(callable $function, $parameter = null, ...$params)
}


/**
* Gets the specified argument from a user-defined function's argument list.
*
* This function may be used in conjunction with
* func_get_args and func_num_args
* to allow user-defined functions to accept variable-length argument lists.
*
* @param int $arg_num The argument offset. Function arguments are counted starting from
* zero.
* @return mixed Returns the specified argument, .
* @throws FunchandException
*
*/
function func_get_arg(int $arg_num)
{
error_clear_last();
$result = \func_get_arg($arg_num);
if ($result === false) {
throw FunchandException::createFromPhpError();
}
return $result;
}


/**
*
*
Expand Down
1 change: 0 additions & 1 deletion generated/functionsList.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@
'create_function',
'forward_static_call_array',
'forward_static_call',
'func_get_arg',
'register_tick_function',
'gmp_binomial',
'gmp_export',
Expand Down
6 changes: 5 additions & 1 deletion generated/misc.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
* Defines a named constant at runtime.
*
* @param string $name The name of the constant.
*
* It is possible to define constants with reserved or
* even invalid names, whose value can (only) be retrieved with
* constant. However, doing so is not recommended.
* @param mixed $value The value of the constant. In PHP 5, value must
* be a scalar value (integer,
* float, string, boolean, or
Expand Down Expand Up @@ -106,7 +110,7 @@ function sapi_windows_cp_set(int $cp): void


/**
* If enable is omitted, the function return TRUE if the stream stream has has VT100 control codes enabled, FALSE otherwise.
* If enable is omitted, the function return TRUE if the stream stream has VT100 control codes enabled, FALSE otherwise.
*
* If enable is specified, the function will try to enable or disable the VT100 features of the stream stream.
* If the feature has been successfully enabled (or disabled), .
Expand Down
1 change: 1 addition & 0 deletions generator/config/ignoredFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
'is_soap_fault',
# Type hints to object OCI-Lob (weird class that has a dash in its name!)
'oci_lob_copy',
'func_get_arg'
];
1 change: 0 additions & 1 deletion rector-migrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ services:
create_function: 'Safe\create_function'
forward_static_call_array: 'Safe\forward_static_call_array'
forward_static_call: 'Safe\forward_static_call'
func_get_arg: 'Safe\func_get_arg'
register_tick_function: 'Safe\register_tick_function'
gmp_binomial: 'Safe\gmp_binomial'
gmp_export: 'Safe\gmp_export'
Expand Down

0 comments on commit 8eb422e

Please sign in to comment.