diff --git a/composer.json b/composer.json index a1fe541271..84b4df5c9d 100644 --- a/composer.json +++ b/composer.json @@ -65,7 +65,7 @@ "symfony/filesystem": "^5.4 || ^6.0 || ^7.0", "symfony/finder": "^5.4 || ^6.0 || ^7.0", "symfony/process": "^5.4 || ^6.0 || ^7.0", - "thecodingmachine/safe": "^2.1.2", + "thecodingmachine/safe": "dev-master as 2.5.0", "webmozart/assert": "^1.11" }, "conflict": { diff --git a/composer.lock b/composer.lock index 8dca91c0fb..f190c91440 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "7a945788fd1255c55fb1cb595e0e37a5", + "content-hash": "0f5332a83e20f07e4d7902cae3b65a35", "packages": [ { "name": "colinodell/json5", @@ -876,16 +876,16 @@ }, { "name": "sanmai/pipeline", - "version": "v6.9", + "version": "6.12", "source": { "type": "git", "url": "https://github.com/sanmai/pipeline.git", - "reference": "c48f45c22c3ce4140d071f7658fb151df1cc08ea" + "reference": "ad7dbc3f773eeafb90d5459522fbd8f188532e25" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sanmai/pipeline/zipball/c48f45c22c3ce4140d071f7658fb151df1cc08ea", - "reference": "c48f45c22c3ce4140d071f7658fb151df1cc08ea", + "url": "https://api.github.com/repos/sanmai/pipeline/zipball/ad7dbc3f773eeafb90d5459522fbd8f188532e25", + "reference": "ad7dbc3f773eeafb90d5459522fbd8f188532e25", "shasum": "" }, "require": { @@ -929,7 +929,7 @@ "description": "General-purpose collections pipeline", "support": { "issues": "https://github.com/sanmai/pipeline/issues", - "source": "https://github.com/sanmai/pipeline/tree/v6.9" + "source": "https://github.com/sanmai/pipeline/tree/6.12" }, "funding": [ { @@ -937,7 +937,7 @@ "type": "github" } ], - "time": "2023-10-08T11:56:54+00:00" + "time": "2024-10-17T02:22:57+00:00" }, { "name": "sebastian/diff", @@ -1169,23 +1169,25 @@ }, { "name": "symfony/filesystem", - "version": "v5.4.25", + "version": "v6.4.13", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "0ce3a62c9579a53358d3a7eb6b3dfb79789a6364" + "reference": "4856c9cf585d5a0313d8d35afd681a526f038dd3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/0ce3a62c9579a53358d3a7eb6b3dfb79789a6364", - "reference": "0ce3a62c9579a53358d3a7eb6b3dfb79789a6364", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/4856c9cf585d5a0313d8d35afd681a526f038dd3", + "reference": "4856c9cf585d5a0313d8d35afd681a526f038dd3", "shasum": "" }, "require": { - "php": ">=7.2.5", + "php": ">=8.1", "symfony/polyfill-ctype": "~1.8", - "symfony/polyfill-mbstring": "~1.8", - "symfony/polyfill-php80": "^1.16" + "symfony/polyfill-mbstring": "~1.8" + }, + "require-dev": { + "symfony/process": "^5.4|^6.4|^7.0" }, "type": "library", "autoload": { @@ -1213,7 +1215,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v5.4.25" + "source": "https://github.com/symfony/filesystem/tree/v6.4.13" }, "funding": [ { @@ -1229,7 +1231,7 @@ "type": "tidelift" } ], - "time": "2023-05-31T13:04:02+00:00" + "time": "2024-10-25T15:07:50+00:00" }, { "name": "symfony/finder", @@ -1923,39 +1925,37 @@ }, { "name": "thecodingmachine/safe", - "version": "v2.1.2", + "version": "dev-master", "source": { "type": "git", "url": "https://github.com/thecodingmachine/safe.git", - "reference": "e19610c7bb1f829bf0886f5a94a21924141212de" + "reference": "61a871cfbaf72357919b7b6035f0400873122280" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thecodingmachine/safe/zipball/e19610c7bb1f829bf0886f5a94a21924141212de", - "reference": "e19610c7bb1f829bf0886f5a94a21924141212de", + "url": "https://api.github.com/repos/thecodingmachine/safe/zipball/61a871cfbaf72357919b7b6035f0400873122280", + "reference": "61a871cfbaf72357919b7b6035f0400873122280", "shasum": "" }, "require": { - "php": "^8.0" + "php": "^8.1" }, "require-dev": { - "phpstan/phpstan": "^0.12", - "phpunit/phpunit": "^9.5", + "php-parallel-lint/php-parallel-lint": "^1.4", + "phpstan/phpstan": "^1", + "phpunit/phpunit": "^10", "squizlabs/php_codesniffer": "^3.2", - "thecodingmachine/phpstan-strict-rules": "^0.12" + "thecodingmachine/phpstan-strict-rules": "^1.0" }, + "default-branch": true, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "0.1-dev" - } - }, "autoload": { "files": [ "deprecated/apc.php", "deprecated/array.php", "deprecated/datetime.php", "deprecated/libevent.php", + "deprecated/misc.php", "deprecated/password.php", "deprecated/mssql.php", "deprecated/stats.php", @@ -1983,7 +1983,6 @@ "generated/ftp.php", "generated/funchand.php", "generated/gettext.php", - "generated/gmp.php", "generated/gnupg.php", "generated/hash.php", "generated/ibase.php", @@ -2013,6 +2012,7 @@ "generated/ps.php", "generated/pspell.php", "generated/readline.php", + "generated/rnp.php", "generated/rpminfo.php", "generated/rrd.php", "generated/sem.php", @@ -2040,13 +2040,13 @@ "generated/zip.php", "generated/zlib.php" ], - "psr-4": { - "Safe\\": [ - "lib/", - "deprecated/", - "generated/" - ] - } + "classmap": [ + "lib/DateTime.php", + "lib/DateTimeImmutable.php", + "lib/Exceptions/", + "deprecated/Exceptions/", + "generated/Exceptions/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -2055,9 +2055,23 @@ "description": "PHP core functions that throw exceptions instead of returning FALSE on error", "support": { "issues": "https://github.com/thecodingmachine/safe/issues", - "source": "https://github.com/thecodingmachine/safe/tree/v2.1.2" + "source": "https://github.com/thecodingmachine/safe/tree/master" }, - "time": "2022-02-01T21:08:44+00:00" + "funding": [ + { + "url": "https://github.com/OskarStark", + "type": "github" + }, + { + "url": "https://github.com/shish", + "type": "github" + }, + { + "url": "https://github.com/staabm", + "type": "github" + } + ], + "time": "2024-12-05T13:18:55+00:00" }, { "name": "webmozart/assert", @@ -4326,9 +4340,18 @@ "time": "2024-03-03T12:36:25+00:00" } ], - "aliases": [], + "aliases": [ + { + "package": "thecodingmachine/safe", + "version": "9999999-dev", + "alias": "2.5.0", + "alias_normalized": "2.5.0.0" + } + ], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": { + "thecodingmachine/safe": 20 + }, "prefer-stable": false, "prefer-lowest": false, "platform": { diff --git a/src/Config/Guesser/SourceDirGuesser.php b/src/Config/Guesser/SourceDirGuesser.php index 07bb7a6741..8e959573e0 100644 --- a/src/Config/Guesser/SourceDirGuesser.php +++ b/src/Config/Guesser/SourceDirGuesser.php @@ -35,12 +35,12 @@ namespace Infection\Config\Guesser; +use function array_walk_recursive; use const DIRECTORY_SEPARATOR; use function in_array; use function is_array; use function is_string; use LogicException; -use function Safe\array_walk_recursive; use stdClass; use function trim; diff --git a/src/FileSystem/DummySymfony5FileSystem.php b/src/FileSystem/DummySymfony5FileSystem.php index 994c3295e5..2fcb558623 100644 --- a/src/FileSystem/DummySymfony5FileSystem.php +++ b/src/FileSystem/DummySymfony5FileSystem.php @@ -107,7 +107,7 @@ public function isAbsolutePath(string $file): bool return true; } - public function tempnam(string $dir, string $prefix/* , string $suffix = '' */): string + public function tempnam(string $dir, string $prefix, string $suffix = ''): string { return ''; }