Skip to content

Commit 96ea560

Browse files
authored
Remove deprecated function calls (#698)
1 parent a4acab4 commit 96ea560

36 files changed

+48
-47
lines changed

phpstan.neon.dist

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ parameters:
3737
path: 'tests/Configuration/ConfigurationKeysTest.php'
3838
- message: '#Property .* does not accept#'
3939
path: 'src/PhpParser/NodeVisitor/UseStmt/UseStmtCollection.php'
40-
- message: '#Return type \(void\) of method#'
41-
path: 'tests/PhpParser/FakeParser.php'
42-
- message: '#concat\(\) should return .+Name but returns .+\|null#'
40+
- message: '#::concat\(\) should return .+Name but returns .+\|null#'
4341
path: 'src/PhpParser/Node/NameFactory.php'
4442
- message: '#concat\(\) should return .+FullyQualified but returns .+\|null#'
4543
path: 'src/PhpParser/Node/FullyQualifiedFactory.php'

src/Autoload/ScoperAutoloadGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
use function count;
2323
use function explode;
2424
use function implode;
25-
use function Safe\sprintf;
25+
use function sprintf;
2626
use function str_repeat;
2727
use function str_replace;
2828

src/Configuration/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use Humbug\PhpScoper\Patcher\Patcher;
1818
use InvalidArgumentException;
1919
use function Safe\preg_match;
20-
use function Safe\sprintf;
20+
use function sprintf;
2121

2222
final class Configuration
2323
{

src/Configuration/ConfigurationFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
use function readlink as native_readlink;
4848
use function realpath;
4949
use function Safe\file_get_contents;
50-
use function Safe\sprintf;
50+
use function sprintf;
5151
use function trim;
5252
use const DIRECTORY_SEPARATOR;
5353
use const SORT_STRING;

src/Configuration/RegexChecker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
use function preg_last_error;
2222
use function preg_last_error_msg;
2323
use function preg_match as native_preg_match;
24-
use function Safe\sprintf;
24+
use function sprintf;
2525
use function str_split;
2626
use function strlen;
2727

src/Configuration/SymbolsConfigurationFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
use function is_string;
3333
use function ltrim;
3434
use function Safe\preg_match as native_preg_match;
35-
use function Safe\sprintf;
36-
use function Safe\substr;
35+
use function sprintf;
3736
use function str_contains;
3837
use function str_replace;
3938
use function strtolower;
39+
use function substr;
4040
use function trim;
4141

4242
final class SymbolsConfigurationFactory

src/Console/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
use Humbug\PhpScoper\Container;
2222
use Symfony\Component\Console\Helper\FormatterHelper;
2323
use function Humbug\PhpScoper\get_php_scoper_version;
24-
use function Safe\sprintf;
24+
use function sprintf;
2525
use function str_contains;
2626
use function trim;
2727

src/Console/Command/AddPrefixCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
use function is_dir;
3737
use function is_writable;
3838
use function Safe\getcwd;
39-
use function Safe\sprintf;
39+
use function sprintf;
4040
use const DIRECTORY_SEPARATOR;
4141

4242
/**

src/Console/Command/ChangeableDirectory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
use function chdir as native_chdir;
2222
use function file_exists;
2323
use function Safe\getcwd;
24-
use function Safe\sprintf;
24+
use function sprintf;
2525

2626
/**
2727
* @private

src/Console/Command/InitCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
use Symfony\Component\Filesystem\Filesystem;
2424
use function file_exists;
2525
use function Safe\getcwd;
26-
use function Safe\sprintf;
26+
use function sprintf;
2727
use const DIRECTORY_SEPARATOR;
2828

2929
/**

0 commit comments

Comments
 (0)