Skip to content

Commit 758a9a3

Browse files
authored
Merge pull request #13 from moufmouf/function_exceptions
Adding the ability to add exceptions via configuration
2 parents 7fc0829 + f629f36 commit 758a9a3

File tree

6 files changed

+1464
-1456
lines changed

6 files changed

+1464
-1456
lines changed

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,10 @@
138138
"generated/zlib.php"
139139
]
140140
},
141+
"require": {
142+
"php": ">=7.1"
143+
},
141144
"require-dev": {
142-
"php": ">=7.1",
143145
"phpstan/phpstan": "^0.10.3",
144146
"thecodingmachine/phpstan-strict-rules": "^0.10.3",
145147
"squizlabs/php_codesniffer": "^3.2"

generated/array.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,6 @@
22

33
namespace Safe;
44

5-
/**
6-
* array_key_exists returns TRUE if the
7-
* given key is set in the array.
8-
* key can be any value possible
9-
* for an array index.
10-
*
11-
* @param string|int $key Value to check.
12-
* @param array $array An array with keys to check.
13-
* @throws Exceptions\ArrayException
14-
*
15-
*/
16-
function array_key_exists($key, array $array): void
17-
{
18-
error_clear_last();
19-
$result = \array_key_exists($key, $array);
20-
if ($result === FALSE) {
21-
throw Exceptions\ArrayException::createFromPhpError();
22-
}
23-
}
24-
25-
265
/**
276
* array_multisort can be used to sort several
287
* arrays at once, or a multi-dimensional array by one or more

0 commit comments

Comments
 (0)