Skip to content

Commit

Permalink
Merge f629f36 into 7fc0829
Browse files Browse the repository at this point in the history
  • Loading branch information
moufmouf committed Sep 7, 2018
2 parents 7fc0829 + f629f36 commit f55baa2
Show file tree
Hide file tree
Showing 6 changed files with 1,464 additions and 1,456 deletions.
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,10 @@
"generated/zlib.php"
]
},
"require": {
"php": ">=7.1"
},
"require-dev": {
"php": ">=7.1",
"phpstan/phpstan": "^0.10.3",
"thecodingmachine/phpstan-strict-rules": "^0.10.3",
"squizlabs/php_codesniffer": "^3.2"
Expand Down
21 changes: 0 additions & 21 deletions generated/array.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,6 @@

namespace Safe;

/**
* array_key_exists returns TRUE if the
* given key is set in the array.
* key can be any value possible
* for an array index.
*
* @param string|int $key Value to check.
* @param array $array An array with keys to check.
* @throws Exceptions\ArrayException
*
*/
function array_key_exists($key, array $array): void
{
error_clear_last();
$result = \array_key_exists($key, $array);
if ($result === FALSE) {
throw Exceptions\ArrayException::createFromPhpError();
}
}


/**
* array_multisort can be used to sort several
* arrays at once, or a multi-dimensional array by one or more
Expand Down

0 comments on commit f55baa2

Please sign in to comment.