Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow php 8.3 #480

Merged
merged 4 commits into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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