Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions standard/standard_9.php
Original file line number Diff line number Diff line change
Expand Up @@ -783,8 +783,27 @@ function array_chunk(array $array, int $length, bool $preserve_keys = false): ar
* @meta
*/
#[Pure]
#[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")]
function array_combine(array $keys, array $values) {}
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')]
function array_combine(array $keys, array $values): array|false {}

/**
* Creates an array by using one array for keys and another for its values
* @link https://php.net/manual/en/function.array-combine.php
* @param array $keys <p>
* Array of keys to be used. Illegal values for key will be
* converted to string.
* </p>
* @param array $values <p>
* Array of values to be used
* </p>
* @return array the combined array
* @throws \ValueError if the number of elements in keys and values does not
* match.
* @meta
*/
#[Pure]
#[PhpStormStubsElementAvailable(from: '8.0')]
function array_combine(array $keys, array $values): array {}

/**
* Checks if the given key or index exists in the array
Expand Down