Skip to content

Commit 0c943be

Browse files
committed
chore: bumps dependencies
1 parent 7504513 commit 0c943be

27 files changed

+103
-258
lines changed

.github/FUNDING.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# These are supported funding model platforms
22

3-
github: [nunomaduro,cmgmyr, JustSteveKing]
3+
github: [nunomaduro]

.github/workflows/docker.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
repository: 'nunomaduro/phpinsights'
1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020
- name: Get Release version
2121
run: echo "RELEASE_VERSION=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV
2222
if: ${{ env.publish == 'true' }}

.github/workflows/format.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
os: [ubuntu-latest]
16-
php: [7.4]
16+
php: [8.1]
1717
dependency-version: [prefer-stable]
1818

1919
name: ${{ matrix.php }} - ${{ matrix.dependency-version }}
2020

2121
steps:
2222

2323
- name: Checkout
24-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
2525
- name: Cache dependencies
26-
uses: actions/cache@v1
26+
uses: actions/cache@v4
2727
with:
2828
path: ~/.composer/cache/files
2929
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

.github/workflows/frameworks.yaml

+11-20
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
os: [ubuntu-latest]
16-
version: ['^5.4', '@stable', '@dev'] # Test current LTS, current release, and future release
17-
php: ['7.4', '8.0', '8.1', '8.2', '8.3']
16+
version: ['@stable', '@dev'] # Test current LTS, current release, and future release
17+
php: ['8.1', '8.2', '8.3']
1818
composer-version: [v2]
1919
include:
20-
- version: '^5.4'
21-
psr-simple-cache-version: '^1.0|^2.0'
2220
- version: '@stable'
23-
psr-simple-cache-version: '^1.0|^2.0|^3.0'
21+
psr-simple-cache-version: '^2.0|^3.0'
2422
- version: '@dev'
25-
psr-simple-cache-version: '^1.0|^2.0|^3.0'
23+
psr-simple-cache-version: '^2.0|^3.0'
2624
env:
2725
allow_failure: ${{ matrix.version == '@dev' }}
2826
name: "Symfony skeleton:${{ matrix.version }} - PHP${{ matrix.php }} - Composer ${{ matrix.composer-version }}"
@@ -86,28 +84,21 @@ jobs:
8684
fail-fast: false
8785
matrix:
8886
os: [ubuntu-latest]
89-
version: ['^10.0', '^9.0', '^8.0']
90-
php: ['7.4', '8.0', '8.1', '8.2', '8.3']
87+
version: ['^10.0', '^11.0', '^12.0']
88+
php: ['8.1', '8.2', '8.3']
9189
composer-version: [v2]
9290
include:
9391
- version: '^10.0'
9492
phpunit: '^10.0'
95-
- version: '^9.0'
96-
phpunit: '^9.0'
97-
- version: '^8.0'
98-
phpunit: '^9.0'
99-
exclude:
100-
- version: '^9.0'
101-
php: '7.4'
102-
- version: '^10.0'
103-
php: '7.4'
104-
- version: '^10.0'
105-
php: '8.0'
93+
- version: '^11.0'
94+
phpunit: '^11.0'
95+
- version: '^12.0'
96+
phpunit: '^11.0'
10697
name: "Laravel:${{ matrix.version }} - PHP${{ matrix.php }} - Composer ${{ matrix.composer-version }}"
10798

10899
steps:
109100
- name: Checkout
110-
uses: actions/checkout@v3
101+
uses: actions/checkout@v4
111102
with:
112103
path: phpinsights
113104
- name: Setup PHP

.github/workflows/standalone.yaml

+3-5
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
os: [ubuntu-latest, macos-latest, windows-latest]
16-
php: ['7.4', '8.0', '8.1', '8.2', '8.3']
16+
php: ['8.1', '8.2', '8.3', '8.4']
1717
dependency-version: [prefer-lowest, prefer-stable]
1818
composer-version: [v2]
1919
exclude:
20-
- dependency-version: prefer-lowest
21-
php: '8.0'
2220
- dependency-version: prefer-lowest
2321
php: '8.1'
2422
- dependency-version: prefer-lowest
@@ -35,10 +33,10 @@ jobs:
3533
git config --system core.eol lf
3634
3735
- name: Checkout
38-
uses: actions/checkout@v3
36+
uses: actions/checkout@v4
3937

4038
- name: Cache dependencies
41-
uses: actions/cache@v1
39+
uses: actions/cache@v4
4240
with:
4341
path: ~/.composer/cache/files
4442
key: dependencies-php-${{ matrix.php }}-composer-${{ matrix.composer-version }}-${{ hashFiles('composer.json') }}

.github/workflows/test.yaml

+13-16
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,25 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
php: ['7.4', '8.0', '8.1', '8.2', '8.3']
14+
php: ['8.1', '8.2', '8.3', '8.4']
1515
dependency-version: [prefer-lowest, prefer-stable]
1616
composer-version: [ v2 ]
1717
include:
18+
- php: '8.3'
19+
phpunit: '^12.0'
20+
- php: '8.2'
21+
phpunit: '^12.0'
22+
- php: '8.3'
23+
phpunit: '^11.0'
24+
- php: '8.2'
25+
phpunit: '^11.0'
1826
- php: '8.3'
1927
phpunit: '^10.0'
2028
- php: '8.2'
2129
phpunit: '^10.0'
2230
- php: '8.1'
2331
phpunit: '^10.0'
24-
- php: '8.0'
25-
phpunit: '^9.0'
26-
- php: '7.4'
27-
phpunit: '^9.0'
2832
exclude:
29-
- dependency-version: prefer-lowest
30-
php: '8.0'
3133
- dependency-version: prefer-lowest
3234
php: '8.1'
3335
- dependency-version: prefer-lowest
@@ -38,10 +40,10 @@ jobs:
3840

3941
steps:
4042
- name: Checkout
41-
uses: actions/checkout@v3
43+
uses: actions/checkout@v4
4244

4345
- name: Cache dependencies
44-
uses: actions/cache@v3
46+
uses: actions/cache@v4
4547
with:
4648
path: ~/.composer/cache/files
4749
key: dependencies-php-${{ matrix.php }}-composer-${{ matrix.composer-version }}
@@ -60,10 +62,5 @@ jobs:
6062
- name: Force PHPUnit version
6163
run: composer require --dev phpunit/phpunit:${{ matrix.phpunit }} --update-with-dependencies -n --ansi
6264

63-
- name: Unit Tests via PHPUnit 9
64-
if: matrix.phpunit == '^9.0'
65-
run: vendor/bin/phpunit --color=always -c phpunit9.xml
66-
67-
- name: Unit Tests via PHPUnit 10
68-
if: matrix.phpunit == '^10.0'
69-
run: vendor/bin/phpunit --color=always
65+
- name: Unit Tests
66+
run: vendor/bin/phpunit

.php-cs-fixer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
'array_syntax' => ['syntax' => 'short'],
1010
'no_empty_statement' => true,
1111
'no_unneeded_control_parentheses' => true,
12-
'no_unneeded_curly_braces' => true,
12+
'no_unneeded_braces' => true,
1313
'no_unused_imports' => true,
1414
'ordered_imports' => true,
1515
'protected_to_private' => true,

README.md

-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
> [!CAUTION]
2-
> This package is no longer actively maintained. Please use at your own risk, or fork the package. Docs are available within the `docs/` directory.
3-
>
4-
> If you are willing to be a maintainer of this package, please reach out to [Nuno Maduro](https://github.com/nunomaduro), or create a new issue stating your interest.
5-
6-
---
7-
81
<p align="center">
92
<img src="/art/logo.gif" width="350" alt="PHP Insights">
103
<img src="/art/preview.png" width="882" alt="PHP Insights Preview">
@@ -20,7 +13,6 @@
2013
</p>
2114

2215
**PHP Insights** was carefully crafted to simplify the analysis of your code directly from your terminal, and is the perfect starting point to analyze the code quality of your PHP projects.
23-
It was created by **[Nuno Maduro](https://github.com/nunomaduro)** with logo design **[Caneco](https://github.com/caneco)**.
2416

2517
## 🚀 Quick start
2618

composer.json

+25-31
Original file line numberDiff line numberDiff line change
@@ -17,38 +17,35 @@
1717
}
1818
],
1919
"require": {
20-
"php": "^7.4|^8.0",
20+
"php": "^8.1",
2121
"ext-iconv": "*",
2222
"ext-json": "*",
2323
"ext-mbstring": "*",
2424
"ext-tokenizer": "*",
25-
"cmgmyr/phploc": "^8.0.3",
26-
"composer/semver": "^3.4",
27-
"friendsofphp/php-cs-fixer": "^3.40.0",
28-
"justinrainbow/json-schema": "^5.2.13",
29-
"league/container": "^3.2|^4.2",
30-
"php-parallel-lint/php-parallel-lint": "^1.3.2",
31-
"psr/container": "^1.0|^2.0.2",
32-
"psr/simple-cache": "^1.0|^2.0|^3.0",
33-
"sebastian/diff": "^4.0|^5.0.3|^6.0",
34-
"slevomat/coding-standard": "^8.14.1",
35-
"squizlabs/php_codesniffer": "^3.7.2",
36-
"symfony/cache": "^5.4|^6.0|^7.0",
37-
"symfony/console": "^5.4|^6.4|^7.0",
38-
"symfony/finder": "^5.4|^6.0|^7.0",
39-
"symfony/http-client": "^5.4|^6.0|^7.0",
40-
"symfony/process": "^5.4|^6.4|^7.0"
25+
"cmgmyr/phploc": "^8.0.4",
26+
"composer/semver": "^3.4.3",
27+
"friendsofphp/php-cs-fixer": "^3.74.0",
28+
"justinrainbow/json-schema": "^5.3.0",
29+
"league/container": "^5.0.1",
30+
"php-parallel-lint/php-parallel-lint": "^1.4.0",
31+
"psr/container": "^2.0.2",
32+
"psr/simple-cache": "^2.0|^3.0",
33+
"sebastian/diff": "^5.1.1|^6.0.2",
34+
"slevomat/coding-standard": "^8.16.2",
35+
"squizlabs/php_codesniffer": "^3.12.0",
36+
"symfony/cache": "^6.4.20|^7.2.5",
37+
"symfony/console": "^6.4.20|^7.2.5",
38+
"symfony/finder": "^6.4.17|^7.2.2",
39+
"symfony/http-client": "^6.4.19|^7.2.4",
40+
"symfony/process": "^6.4.20|^7.2.5"
4141
},
4242
"require-dev": {
43-
"ergebnis/phpstan-rules": "^0.15.3",
44-
"illuminate/console": "^5.8|^6.0|^7.0|^8.0|^9.20|^10.0",
45-
"illuminate/support": "^5.8|^6.0|^7.0|^8.0|^9.52.16|^10.0",
46-
"mockery/mockery": "^1.6.6",
47-
"phpstan/phpstan-strict-rules": "^0.12.11",
48-
"phpunit/phpunit": "^8.0|^9.0|^10.4.2",
49-
"rector/rector": "0.11.56",
50-
"symfony/var-dumper": "^5.4|^6.0|^7.0",
51-
"thecodingmachine/phpstan-strict-rules": "^0.12.2"
43+
"illuminate/console": "^10.48.28|^11.44.2|^12.3",
44+
"illuminate/support": "^10.48.28|^11.44.2|^12.3",
45+
"mockery/mockery": "^1.6.12",
46+
"phpstan/phpstan": "^2.1.11",
47+
"phpunit/phpunit": "^10.5.45|^11.5.15",
48+
"symfony/var-dumper": "^6.4.18|^7.2.3"
5249
},
5350
"suggest": {
5451
"ext-simplexml": "It is needed for the checkstyle formatter"
@@ -85,22 +82,19 @@
8582
"scripts": {
8683
"website:copy-changelog": "@php -r \"copy('CHANGELOG.md', 'docs/changelog.md');\"",
8784
"website:copy-logo": "@php -r \"(is_dir('docs/.vuepress/public') || mkdir('docs/.vuepress/public')) && copy('art/logo_mixed.gif', 'docs/.vuepress/public/logo.gif') && copy('art/heart.svg', 'docs/.vuepress/public/heart.svg') && copy('art/heart.png', 'docs/.vuepress/public/heart.png');\"",
88-
"csfixer:test": "php-cs-fixer fix -v",
85+
"csfixer:test": "PHP_CS_FIXER_IGNORE_ENV=true php-cs-fixer fix -v",
8986
"phpstan:test": "phpstan analyse --ansi",
9087
"phpunit:test": "phpunit --colors=always",
91-
"rector:test": "rector process --ansi",
9288
"insights": "bin/phpinsights analyse --ansi -v --no-interaction",
9389
"test": [
9490
"@phpstan:test",
9591
"@csfixer:test --dry-run",
96-
"@rector:test --dry-run",
9792
"@phpunit:test",
9893
"@insights"
9994
],
10095
"fix": [
10196
"@csfixer:test",
102-
"@insights --fix --quiet",
103-
"@rector:test"
97+
"@insights --fix --quiet"
10498
],
10599
"post-install-cmd": [
106100
"@website:copy-changelog",

phpstan.neon

+2-52
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,13 @@
1-
includes:
2-
- vendor/phpstan/phpstan-strict-rules/rules.neon
3-
- vendor/ergebnis/phpstan-rules/rules.neon
4-
- vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon
5-
61
parameters:
7-
level: max
2+
level: 5
83
paths:
94
- config
105
- src
116
- stubs
12-
- tests
137

14-
ignoreErrors:
15-
- '#Offset 1 does not exist on array.#'
16-
- '#iterator_to_array expects Traversable, iterable#'
17-
- '#Method NunoMaduro\\PhpInsights\\Domain\\Collector::addConstant\(\) has parameter \$name with no typehint specified#'
18-
- '#Method NunoMaduro\\PhpInsights\\Domain\\Collector::addFile\(\) has parameter \$filename with no typehint specified#'
19-
- '#NunoMaduro\\PhpInsights\\Domain\\File::__construct\(\) does not call parent constructor from PHP_CodeSniffer\\Files\\File#'
20-
- '#Method NunoMaduro\\PhpInsights\\Domain\\File::addMessage\(\) has parameter#'
21-
- '#Variable property access on PHP_CodeSniffer\\Sniffs\\Sniff#'
22-
- '#is not allowed to extend#'
23-
- '#Language construct isset\(\) should not be used#'
24-
- '#Access to an undefined property PHP_CodeSniffer\\Config::\$standards.#'
25-
- '#Access to an undefined property PHP_CodeSniffer\\Sniffs\\Sniff::\$#'
26-
- '#NunoMaduro\\PhpInsights\\Application\\Console\\Formatters\\Json has an unused parameter \$input#'
27-
- '#NunoMaduro\\PhpInsights\\Application\\Console\\Formatters\\Checkstyle has an unused parameter \$input#'
28-
- '#In method "NunoMaduro\\PhpInsights\\Domain\\File::process", caught "Throwable" must be rethrown#'
29-
- '#In method "NunoMaduro\\PhpInsights\\Domain\\FileProcessors\\FixerFileProcessor::processFile", caught "Throwable" must be rethrown#'
30-
- '#Empty catch block. If you are sure this is meant to be empty, please add a "// @ignoreException" comment in the catch block.#'
31-
- '#Casting to string something that#'
32-
- '#Instanceof between Illuminate\\Contracts\\Foundation\\Application and#'
33-
- '#Call to function method_exists\(\) with Symfony\\Component\\Console\\Formatter\\OutputFormatterStyle and #'
34-
- '#Error suppression via "@" should not be used.#'
35-
-
36-
message: '#Control structures using switch should not be used.#'
37-
path: src/Domain/Analyser.php
38-
-
39-
message: '#does not exist on SimpleXMLElement\|null.#'
40-
path: src/Application/Console/Formatters/Checkstyle.php
41-
-
42-
message: '#generic class ReflectionClass#'
43-
path: src/Domain/Reflection.php
44-
- '#NunoMaduro\\PhpInsights\\Domain\\File::addFixableError#'
45-
- '#NunoMaduro\\PhpInsights\\Domain\\Differ#'
46-
- '#iterable type PhpCsFixer\\Tokenizer\\Tokens#'
47-
- '#Method NunoMaduro\\PhpInsights\\Application\\Console\\Definitions\\BaseDefinition::get\(\) is not final#'
48-
-
49-
message: "#^Method Tests\\\\TestCase\\:\\:.*\\(\\) is not final, but since the containing class is abstract, it should be\\.$#"
50-
count: 2
51-
path: tests/TestCase.php
52-
-
53-
message: "#^Parameter \\#.* of class Composer\\\\Package\\\\Locker constructor expects .*$#"
54-
count: 3
55-
path: src/Domain/ComposerLoader.php
56-
- "#^Parameter \\#1 \\$input of function array_flip expects array\\<int\\|string\\>, array\\<string, array\\|float\\|int\\|string\\> given\\.$#"
578
bootstrapFiles:
589
- %rootDir%/../../squizlabs/php_codesniffer/autoload.php
59-
reportUnmatchedIgnoredErrors: false
6010

61-
excludes_analyse:
11+
excludePaths:
6212
- %rootDir%/../../../tests/*/Fixtures/*
6313
- %rootDir%/../../../tests/Fixtures/*

phpunit9.xml

-29
This file was deleted.

0 commit comments

Comments
 (0)