mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 23:30:35 -04:00
Add Safe PHP functions
This commit is contained in:
parent
04a956886a
commit
58cc098058
260 changed files with 49458 additions and 45 deletions
7
vendor/thecodingmachine/phpstan-safe-rule/tests/Rules/data/safe_pregreplace.php
vendored
Normal file
7
vendor/thecodingmachine/phpstan-safe-rule/tests/Rules/data/safe_pregreplace.php
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
use function Safe\preg_replace;
|
||||
|
||||
$x = preg_replace('/foo/', 'bar', 'baz');
|
||||
$y = stripos($x, 'foo');
|
||||
|
||||
$x = preg_replace(['/foo/'], ['bar'], ['baz']);
|
Loading…
Add table
Add a link
Reference in a new issue