Skip to content

Commit 5a266d1

Browse files
committed
release PHP 7.2 downgraded
1 parent 22c1225 commit 5a266d1

File tree

3,938 files changed

+352760
-1401
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,938 files changed

+352760
-1401
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 & 11 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/build-scoped.sh

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

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: 8 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2,52 +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-
"phpstan/phpstan": "^2.1",
12-
"rector/rector": "^2.2",
13-
"symfony/console": "^6.4",
14-
"symfony/finder": "^7.3",
15-
"symfony/process": "^7.3",
16-
"webmozart/assert": "^1.12"
17-
},
18-
"require-dev": {
19-
"php-parallel-lint/php-parallel-lint": "^1.4",
20-
"phpunit/phpunit": "^11.5",
21-
"phpecs/phpecs": "^2.2",
22-
"tomasvotruba/class-leak": "^2.0",
23-
"tracy/tracy": "^2.10"
6+
"php": ">=7.2",
7+
"phpstan/phpstan": "^2.0",
8+
"rector/rector": "^2.0"
249
},
10+
"bin": [
11+
"bin/argtyper",
12+
"bin/argtyper.php"
13+
],
2514
"autoload": {
2615
"psr-4": {
27-
"Rector\\ArgTyper\\": "src"
16+
"Rector\\Argtyper\\": "src"
2817
}
29-
},
30-
"autoload-dev": {
31-
"psr-4": {
32-
"Rector\\ArgTyper\\Tests\\": "tests"
33-
},
34-
"files": [
35-
"tests/PHPStan/CollectFuncCallArgTypesRule/Source/some_function.php"
36-
]
37-
},
38-
"config": {
39-
"sort-packages": true,
40-
"platform-check": false
41-
},
42-
"replace": {
43-
"symfony/polyfill-ctype": "*",
44-
"symfony/polyfill-intl-normalizer": "*",
45-
"symfony/polyfill-mbstring": "*"
46-
},
47-
"scripts": {
48-
"check-cs": "vendor/bin/ecs check --ansi",
49-
"fix-cs": "vendor/bin/ecs check --fix --ansi",
50-
"phpstan": "vendor/bin/phpstan analyse --ansi",
51-
"rector": "vendor/bin/rector process --dry-run --ansi"
5218
}
5319
}

0 commit comments

Comments
 (0)