Skip to content

Commit

Permalink
Merge pull request #480 from fezfez/php8.3
Browse files Browse the repository at this point in the history
allow php 8.3
  • Loading branch information
Ocramius committed Sep 15, 2023
2 parents a5c3ce1 + e5a8f39 commit 3dd4ea3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 74 deletions.
6 changes: 3 additions & 3 deletions bin/roave-infection-static-analysis-plugin
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ declare(strict_types=1);

namespace Roave\InfectionStaticAnalysis\Application;

use Composer\InstalledVersions;
use Infection\Console\Application;
use Infection\Container;
use PackageVersions\Versions;
use Psalm\Config;
use Psalm\Internal\Analyzer\ProjectAnalyzer;
use Psalm\Internal\IncludeCollector;
Expand Down Expand Up @@ -52,11 +52,11 @@ use function var_export;
require_once $projectPath . '/vendor/autoload.php';

if (! defined('PSALM_VERSION')) {
define('PSALM_VERSION', Versions::getVersion('vimeo/psalm'));
define('PSALM_VERSION', InstalledVersions::getVersion('vimeo/psalm'));
}

if (! defined('PHP_PARSER_VERSION')) {
define('PHP_PARSER_VERSION', Versions::getVersion('nikic/php-parser'));
define('PHP_PARSER_VERSION', InstalledVersions::getVersion('nikic/php-parser'));
}

/** @var list<non-empty-string> */
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
"bin/roave-infection-static-analysis-plugin"
],
"require": {
"php": "~8.1.0 || ~8.2.0",
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
"composer-runtime-api": "^2.2",
"infection/infection": "0.27.0",
"ocramius/package-versions": "^2.7.0",
"sanmai/later": "^0.1.2",
"vimeo/psalm": "^4.30.0 || ^5.0.0"
"vimeo/psalm": "^4.30.0 || ^5.15"
},
"require-dev": {
"doctrine/coding-standard": "^12.0.0",
Expand Down
69 changes: 4 additions & 65 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

namespace Roave\InfectionStaticAnalysisTest\Psalm;

use Composer\InstalledVersions;
use Infection\Mutant\Mutant;
use Infection\Mutation\Mutation;
use Infection\Mutation\MutationAttributeKeys;
use Infection\PhpParser\MutatedNode;
use PackageVersions\Versions;
use PHPUnit\Framework\TestCase;
use Psalm\Config;
use Psalm\Internal\Analyzer\ProjectAnalyzer;
Expand Down Expand Up @@ -110,11 +110,11 @@ function hasMethod(object $input, string $method): bool {
file_put_contents($repeatedDeclaredClassSymbolPath, $declaredClassSymbol);

if (! defined('PSALM_VERSION')) {
define('PSALM_VERSION', Versions::getVersion('vimeo/psalm'));
define('PSALM_VERSION', InstalledVersions::getVersion('vimeo/psalm'));
}

if (! defined('PHP_PARSER_VERSION')) {
define('PHP_PARSER_VERSION', Versions::getVersion('nikic/php-parser'));
define('PHP_PARSER_VERSION', InstalledVersions::getVersion('nikic/php-parser'));
}

RuntimeCaches::clearAll();
Expand Down

0 comments on commit 3dd4ea3

Please sign in to comment.