Skip to content

Commit 0217225

Browse files
Steevan BARBOYONsteevanb
authored andcommitted
Compatibility with Symfony 7, PHP 8.2, PHP 8.3 and update CI tools
1 parent 02ea84c commit 0217225

File tree

14 files changed

+77
-38
lines changed

14 files changed

+77
-38
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ubuntu-latest
3131
strategy:
3232
matrix:
33-
php-version: [--php=7.4, --php=8.0, --php=8.1]
33+
php-version: [--php=7.4, --php=8.0, --php=8.1, --php=8.2, --php=8.3]
3434
steps:
3535
- uses: actions/checkout@v2
3636
-

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ symfony-container-introspection
88

99
It helps you to know which services are instanciated, removed, public and list container parameters.
1010

11-
You have access to Container cache statistics: files count, count code lines and cache size.
11+
You have access to Container cache statistics: files count, code lines count and cache size.
1212

1313
With Symfony, a new profiler tab will appear:
1414

bin/ci/phpcs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,4 @@ if [ ! -d "${ROOT_DIR}"/var/ci/phpcs ]; then
1212
mkdir -p "${ROOT_DIR}"/var/ci/phpcs
1313
fi
1414

15-
phpcs \
16-
-p \
17-
--warning-severity=0 \
18-
--ignore=/vendor/,/var/,src/Doctrine/ORM/EntityManager.php \
19-
--bootstrap=config/ci/phpcs.php \
20-
--standard="${COMPOSER_HOME}"/vendor/steevanb/php-code-sniffs/src/Steevanb/ruleset.xml \
21-
--report=steevanb\\PhpCodeSniffs\\Reports\\Steevanb \
22-
--cache="${ROOT_DIR}"/var/ci/phpcs/cache \
23-
. \
24-
"${@}"
15+
phpcs -p --standard="${ROOT_DIR}"/config/ci/phpcs.xml "${@}"

bin/ci/phpstan.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
function createPhpstanProcesses(string $phpVersion = null): ProcessArray
1717
{
18-
$phpVersions = is_string($phpVersion) ? [$phpVersion] : ['7.4', '8.0', '8.1'];
18+
$phpVersions = is_string($phpVersion) ? [$phpVersion] : ['7.4', '8.0', '8.1', '8.2', '8.3'];
1919

2020
$return = new ProcessArray();
2121
foreach ($phpVersions as $loopPhpVersion) {

changelog.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
### master
22

3+
- Add `Symfony ^7.0` compatibility
4+
- Add `PHP 8.2` and `8.3` compatibility
5+
- Update CI tools
6+
37
### [3.0.1](../../compare/3.0.0...3.0.1) - 2022-11-22
48

59
- Fix `You must call introspect() before getContainerCachePath()`
@@ -10,7 +14,7 @@
1014
- [BC Break] Move files from root directory to `src`
1115
- Add `bin`, `config` and `docker` directories
1216
- Add binaries to start the project, build Docker images, run CI tools etc
13-
- Add PHP 8.0 and 8.1 compatibility
17+
- Add `PHP ^8.0` compatibility
1418

1519
### [2.0.0](../../compare/1.1.1...2.0.0) - 2020-10-26
1620

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"name": "steevanb/symfony-container-introspection",
3-
"type": "lib",
43
"description": "Get all Symfony Container informations you need: registered services, instanciated services etc",
54
"license": "MIT",
5+
"type": "lib",
66
"require": {
77
"php": "^7.1 || ^8.0",
8-
"symfony/dependency-injection": "^5.0 || ^6.0"
8+
"symfony/dependency-injection": "^5.0 || ^6.0 || ^7.0"
99
},
1010
"require-dev": {
1111
"ocramius/proxy-manager": "^2.0",
12-
"symfony/config": "^5.0 || ^6.0",
13-
"symfony/http-kernel": "^5.0 || ^6.0"
12+
"symfony/config": "~5.0.0",
13+
"symfony/http-kernel": "~5.0.0"
1414
},
1515
"autoload": {
1616
"psr-4": {

config/ci/phpcs.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="phpcs">
3+
<rule ref="/composer/vendor/steevanb/php-code-sniffs/src/Steevanb/ruleset.xml"/>
4+
<arg name="warning-severity" value="0"/>
5+
<exclude-pattern>/var</exclude-pattern>
6+
<exclude-pattern>/vendor</exclude-pattern>
7+
<exclude-pattern>src/Doctrine/ORM/EntityManager.php</exclude-pattern>
8+
<arg name="report" value="steevanb\PhpCodeSniffs\Reports\Steevanb"/>
9+
<arg name="cache" value="../../var/ci/phpcs/cache"/>
10+
<file>../..</file>
11+
<rule ref="Steevanb.Uses.GroupUses">
12+
<properties>
13+
<property name="thirdLevelPrefixes" type="array">
14+
<element value="Steevanb\ContainerIntrospection"/>
15+
<element value="Symfony\Component"/>
16+
</property>
17+
</properties>
18+
</rule>
19+
<rule ref="Steevanb.ReturnType.Php81StaticInsteadOfSelf">
20+
<exclude name="Steevanb.ReturnType.Php81StaticInsteadOfSelf.ReturnTypeStatic"/>
21+
</rule>
22+
</ruleset>

config/ci/phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ parameters:
44
- ../../src
55
includes:
66
- /composer/vendor/phpstan/phpstan-deprecation-rules/rules.neon
7+
- /composer/vendor/phpstan/phpstan-phpunit/extension.neon
78
- /composer/vendor/phpstan/phpstan-phpunit/rules.neon
89
- /composer/vendor/phpstan/phpstan-strict-rules/rules.neon
910
- /composer/vendor/spaze/phpstan-disallowed-calls/extension.neon

config/ci/phpstan.php-8.2.neon

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
includes:
2+
- phpstan.neon
3+
parameters:
4+
tmpDir: ../../var/ci/phpstan/php-8-2

config/ci/phpstan.php-8.3.neon

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
includes:
2+
- phpstan.neon
3+
parameters:
4+
tmpDir: ../../var/ci/phpstan/php-8-3

0 commit comments

Comments
 (0)