Skip to content

Commit e94bc10

Browse files
ajout phpstan
1 parent 340ac99 commit e94bc10

File tree

5 files changed

+102
-69
lines changed

5 files changed

+102
-69
lines changed

Makefile

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ endif
1010
SF_ENV=sf4
1111
LOCAL_DOCKER_TAG=cleverage_process:test
1212
DOCKER_RUN=docker run -it --rm \
13-
-e BLACKFIRE_CLIENT_ID=$(BLACKFIRE_CLIENT_ID) \
14-
-e BLACKFIRE_CLIENT_TOKEN=$(BLACKFIRE_CLIENT_TOKEN) \
1513
--mount type=bind,src=$$(pwd),dst=/src-cleverage_process
1614

1715
pull: pull/$(SF_ENV)

Resources/tests/environment/sf4/composer.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222
},
2323
"require-dev": {
2424
"symfony/phpunit-bridge": "^4.4|^5.0",
25-
"phpunit/phpunit": "~6.4"
25+
"phpunit/phpunit": "~6.4",
26+
"phpstan/phpstan": "*",
27+
"phpstan/phpstan-symfony": "*",
28+
"phpstan/extension-installer": "*"
2629
},
2730
"autoload": {
2831
"psr-4": {
@@ -46,5 +49,11 @@
4649
"post-update-cmd": [
4750
"@auto-scripts"
4851
]
52+
},
53+
"config": {
54+
"allow-plugins": {
55+
"phpstan/extension-installer": true,
56+
"symfony/flex": true
57+
}
4958
}
5059
}

Resources/tests/environment/sf5/composer.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222
},
2323
"require-dev": {
2424
"symfony/phpunit-bridge": "^4.4|^5.0",
25-
"phpunit/phpunit": "~6.4"
25+
"phpunit/phpunit": "~6.4",
26+
"phpstan/phpstan": "*",
27+
"phpstan/phpstan-symfony": "*",
28+
"phpstan/extension-installer": "*"
2629
},
2730
"autoload": {
2831
"psr-4": {
@@ -46,5 +49,11 @@
4649
"post-update-cmd": [
4750
"@auto-scripts"
4851
]
52+
},
53+
"config": {
54+
"allow-plugins": {
55+
"phpstan/extension-installer": true,
56+
"symfony/flex": true
57+
}
4958
}
5059
}

composer.json

+75-65
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,80 @@
11
{
2-
"name": "cleverage/process-bundle",
3-
"description": "Process, import/export, transform and validate data with a simple API with Symfony3",
4-
"keywords": [
5-
"process",
6-
"task",
7-
"etl",
8-
"transformation",
9-
"import",
10-
"export"
11-
],
12-
"homepage": "https://github.com/cleverage/process-bundle",
13-
"type": "symfony-bundle",
14-
"license": "MIT",
15-
"authors": [
16-
{
17-
"name": "Vincent Chalnot",
18-
"email": "[email protected]",
19-
"homepage": "http://chalnot.fr",
20-
"role": "Lead Developer"
21-
},
22-
{
23-
"name": "Valentin Clavreul",
24-
"email": "[email protected]",
25-
"role": "Developer"
26-
},
27-
{
28-
"name": "Madeline Veyrenc",
29-
"email": "[email protected]",
30-
"homepage": "https://github.com/mveyrenc",
31-
"role": "Developer"
32-
}
33-
],
34-
"autoload": {
35-
"psr-4": {
36-
"CleverAge\\ProcessBundle\\": ""
37-
}
2+
"name": "cleverage/process-bundle",
3+
"description": "Process, import/export, transform and validate data with a simple API with Symfony3",
4+
"keywords": [
5+
"process",
6+
"task",
7+
"etl",
8+
"transformation",
9+
"import",
10+
"export"
11+
],
12+
"homepage": "https://github.com/cleverage/process-bundle",
13+
"type": "symfony-bundle",
14+
"license": "MIT",
15+
"authors": [
16+
{
17+
"name": "Vincent Chalnot",
18+
"email": "[email protected]",
19+
"homepage": "http://chalnot.fr",
20+
"role": "Lead Developer"
3821
},
39-
"require": {
40-
"php": ">=7.2",
41-
"ext-json": "*",
42-
"ext-dom": "*",
43-
"ext-intl": "*",
44-
"symfony/event-dispatcher-contracts": "~1.0|~2.0",
45-
"psr/event-dispatcher": "1.0.0",
46-
"psr/cache": "^1|^2|^3",
47-
"symfony/config": "~3.0|~4.0|~5.0",
48-
"symfony/dependency-injection": "~3.0|~4.0|~5.0",
49-
"symfony/framework-bundle": "~3.0|~4.0|~5.0",
50-
"symfony/expression-language": "~3.0|~4.0|~5.0",
51-
"symfony/monolog-bundle": "~3.3",
52-
"symfony/console": "~3.0|~4.0|~5.0",
53-
"symfony/options-resolver": "~3.0|~4.0|~5.0",
54-
"symfony/process": "~3.0|~4.0|~5.0",
55-
"symfony/property-access": "~3.0|~4.0|~5.0",
56-
"symfony/serializer": "~3.0|~4.0|~5.0",
57-
"symfony/validator": "~3.0|~4.0|~5.0",
58-
"symfony/yaml": "~3.0|~4.0|~5.0"
22+
{
23+
"name": "Valentin Clavreul",
24+
"email": "[email protected]",
25+
"role": "Developer"
5926
},
60-
"require-dev": {
61-
"phpunit/phpunit": "~6.4"
62-
},
63-
"suggest": {
64-
"cleverage/doctrine-process-bundle": "Dedicated bundle for Doctrine dependencies for the process bundle",
65-
"cleverage/flysystem-process-bundle": "Dedicated bundle for Flysystem dependencies for the process bundle",
66-
"cleverage/rest-process-bundle": "Dedicated bundle for Rest dependencies for the process bundle",
67-
"cleverage/soap-process-bundle": "Dedicated bundle for Soap dependencies for the process bundle",
68-
"cleverage/enqueue-process-bundle": "Manage asynchronous events within the process bundle"
27+
{
28+
"name": "Madeline Veyrenc",
29+
"email": "[email protected]",
30+
"homepage": "https://github.com/mveyrenc",
31+
"role": "Developer"
32+
}
33+
],
34+
"autoload": {
35+
"psr-4": {
36+
"CleverAge\\ProcessBundle\\": ""
37+
}
38+
},
39+
"require": {
40+
"php": ">=7.2",
41+
"ext-json": "*",
42+
"ext-dom": "*",
43+
"ext-intl": "*",
44+
"symfony/event-dispatcher-contracts": "~1.0|~2.0",
45+
"psr/event-dispatcher": "1.0.0",
46+
"psr/cache": "^1|^2|^3",
47+
"symfony/config": "~3.0|~4.0|~5.0",
48+
"symfony/dependency-injection": "~3.0|~4.0|~5.0",
49+
"symfony/framework-bundle": "~3.0|~4.0|~5.0",
50+
"symfony/expression-language": "~3.0|~4.0|~5.0",
51+
"symfony/monolog-bundle": "~3.3",
52+
"symfony/console": "~3.0|~4.0|~5.0",
53+
"symfony/options-resolver": "~3.0|~4.0|~5.0",
54+
"symfony/process": "~3.0|~4.0|~5.0",
55+
"symfony/property-access": "~3.0|~4.0|~5.0",
56+
"symfony/serializer": "~3.0|~4.0|~5.0",
57+
"symfony/validator": "~3.0|~4.0|~5.0",
58+
"symfony/yaml": "~3.0|~4.0|~5.0"
59+
},
60+
"require-dev": {
61+
"roave/security-advisories": "dev-latest",
62+
"phpunit/phpunit": "~6.4",
63+
"phpstan/phpstan": "*",
64+
"phpstan/phpstan-symfony": "*",
65+
"phpstan/extension-installer": "*"
66+
},
67+
"suggest": {
68+
"cleverage/doctrine-process-bundle": "Dedicated bundle for Doctrine dependencies for the process bundle",
69+
"cleverage/flysystem-process-bundle": "Dedicated bundle for Flysystem dependencies for the process bundle",
70+
"cleverage/rest-process-bundle": "Dedicated bundle for Rest dependencies for the process bundle",
71+
"cleverage/soap-process-bundle": "Dedicated bundle for Soap dependencies for the process bundle",
72+
"cleverage/enqueue-process-bundle": "Manage asynchronous events within the process bundle"
73+
},
74+
"config": {
75+
"allow-plugins": {
76+
"phpstan/extension-installer": true,
77+
"symfony/flex": true
6978
}
79+
}
7080
}

phpstan.neon

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
parameters:
2+
level: 1
3+
paths:
4+
- .
5+
excludePaths:
6+
- vendor/*
7+
- rector.php

0 commit comments

Comments
 (0)