Commit 25877ed
authored
[TASK] Add
Safe-PHP https://github.com/thecodingmachine/safe provides
rewrites of PHP functions to throw an exception instead of
returning `false` when an error is encountered.
This will allow us to drop out custom `preg_*` wrapper class
and to increase type safety in our codebase.
Also drop the PHP-CS-Fixer rule that adds a trailing backslash
to calls to native PHP functions (as this would change the
Safe-PHP calls back to their unsafe versions).
The actual code changes will come in subsequent commits.
Part of #1168thecodingmachine/safe (#1453) (#1366)1 parent 5c23dc7 commit 25877ed
3 files changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
| |||
0 commit comments