Skip to content

Commit a565774

Browse files
committed
release PHP 7.2 downgraded
1 parent b4c4d55 commit a565774

File tree

3,974 files changed

+359596
-1402
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,974 files changed

+359596
-1402
lines changed

build/target-repository/.github/FUNDING.yml renamed to .github/FUNDING.yml

File renamed without changes.

build/target-repository/.github/workflows/auto_closer.yaml renamed to .github/workflows/auto_closer.yaml

File renamed without changes.

.gitignore

Lines changed: 0 additions & 9 deletions
This file was deleted.

bin/argtyper

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env php
2-
<?php
2+
<?php
3+
namespace Argtyper202511;
34

45
require_once __DIR__ . '/argtyper.php';

bin/argtyper.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
<?php
22

3-
declare(strict_types=1);
3+
declare (strict_types=1);
4+
namespace Argtyper202511;
45

56
require_once __DIR__ . '/autoload.php';
6-
77
$containerFactory = new \Rector\ArgTyper\DependencyInjection\ContainerFactory();
88
$container = $containerFactory->create();
9-
109
/** @var \Symfony\Component\Console\Application $application */
11-
$application = $container->make(\Symfony\Component\Console\Application::class);
12-
10+
$application = $container->make(\Argtyper202511\Symfony\Component\Console\Application::class);
1311
$resultCode = $application->run();
1412
exit($resultCode);

bin/autoload.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
<?php
22

3+
namespace Argtyper202511;
4+
35
// installed as dependency
4-
if (file_exists(__DIR__ . '/../../../../vendor/autoload.php')) {
6+
if (\file_exists(__DIR__ . '/../../../../vendor/autoload.php')) {
57
require_once __DIR__ . '/../../../../vendor/autoload.php';
68
}
7-
8-
if (file_exists(__DIR__ . '/../vendor/scoper-autoload.php')) {
9+
if (\file_exists(__DIR__ . '/../vendor/scoper-autoload.php')) {
910
// A. build downgraded package
1011
require_once __DIR__ . '/../vendor/scoper-autoload.php';
1112
} else {

build/rector-downgrade-php-72.php

Lines changed: 0 additions & 9 deletions
This file was deleted.

build/target-repository/composer.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

composer.json

Lines changed: 7 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -2,63 +2,18 @@
22
"name": "rector/argtyper",
33
"description": "Analyze real method argument types, and add them as type declarations",
44
"license": "proprietary",
5-
"bin": [
6-
"bin/argtyper"
7-
],
85
"require": {
9-
"php": "^8.2",
10-
"illuminate/container": "^12.39",
11-
"nette/utils": "^4.0",
12-
"phpstan/phpstan": "^2.1",
13-
"rector/rector": "^2.2",
14-
"symfony/console": "^6.4",
15-
"symfony/finder": "^7.3",
16-
"symfony/process": "^7.3",
17-
"webmozart/assert": "^1.12"
18-
},
19-
"require-dev": {
20-
"php-parallel-lint/php-parallel-lint": "^1.4",
21-
"phpecs/phpecs": "^2.2",
22-
"phpstan/extension-installer": "^1.4",
23-
"phpunit/phpunit": "^11.5",
24-
"shipmonk/composer-dependency-analyser": "^1.8",
25-
"symplify/phpstan-extensions": "^12.0",
26-
"tomasvotruba/class-leak": "^2.1",
27-
"tomasvotruba/unused-public": "^2.1",
28-
"tracy/tracy": "^2.10"
6+
"php": ">=7.4",
7+
"phpstan/phpstan": "^2.0",
8+
"rector/rector": "^2.0"
299
},
10+
"bin": [
11+
"bin/argtyper",
12+
"bin/argtyper.php"
13+
],
3014
"autoload": {
3115
"psr-4": {
3216
"Rector\\ArgTyper\\": "src"
3317
}
34-
},
35-
"autoload-dev": {
36-
"psr-4": {
37-
"Rector\\ArgTyper\\Tests\\": "tests"
38-
},
39-
"classmap": [
40-
"tests/Rector/Rector/ClassMethod/AddClassMethodParamTypeRector/Fixture"
41-
],
42-
"files": [
43-
"tests/PHPStan/CollectFuncCallArgTypesRule/Source/some_function.php"
44-
]
45-
},
46-
"config": {
47-
"sort-packages": true,
48-
"platform-check": false,
49-
"allow-plugins": {
50-
"phpstan/extension-installer": true
51-
}
52-
},
53-
"replace": {
54-
"symfony/polyfill-ctype": "*",
55-
"symfony/polyfill-intl-normalizer": "*",
56-
"symfony/polyfill-mbstring": "*"
57-
},
58-
"scripts": {
59-
"check-cs": "vendor/bin/ecs check --ansi",
60-
"fix-cs": "vendor/bin/ecs check --fix --ansi",
61-
"phpstan": "vendor/bin/phpstan analyse --ansi",
62-
"rector": "vendor/bin/rector process --dry-run --ansi"
6318
}
6419
}

0 commit comments

Comments
 (0)