Skip to content

Commit b77210b

Browse files
author
Vincent Faliès
committed
Upgrading
1 parent f264ed9 commit b77210b

File tree

6 files changed

+37
-30
lines changed

6 files changed

+37
-30
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8+
## [1.7] - 2020-01-01
9+
10+
### Added
11+
12+
- Update phpcompatibility to 9.3.5
13+
- Update php_codesniffer to 3.5.3
14+
- update PHP Version base to 7.4
15+
816
## [1.6] - 2019-08-25
917

1018
### Changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM vfac/envdevphpbase:7.3-cli-alpine
1+
FROM vfac/envdevphpbase:7.4-cli-alpine
22
LABEL maintainer="Vincent Faliès <vincent@vfac.fr>"
33

44
COPY composer.json /php7checker/composer.json

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017-2018 Vincent Faliès
3+
Copyright (c) 2017-2020 Vincent Faliès
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ This container propose to check the compatibility of your code with PHP 7.x
1010
docker run --rm -v $(pwd):/app vfac/php7compatibility <version> <option> <path>
1111
```
1212

13-
### <version>
13+
### version
1414

15-
PHP Version used to check code compatibility: 7.0, 7.1, 7.2, 7.3
15+
PHP Version used to check code compatibility: 7.0, 7.1, 7.2, 7.3, 7.4
1616

1717
For instance to check code of the current directory in PHP version 7.1 :
1818

1919
```
20-
docker run --rm -v $(pwd):/app vfac/php7compatibility 7.1 .
20+
docker run --rm -v $(pwd):/app vfac/php7compatibility 7.4 .
2121
```
2222

23-
### <option>
23+
### option
2424

25-
#### memory_limit
25+
#### memory_limit
2626

27-
With large source code, you could have an error message like:
27+
With large source code, you could have an error message like:
2828

2929
```
3030
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /php7checker/vendor/squizlabs/php_codesniffer/src/Tokenizers/Tokenizer.php on line 1282
@@ -41,7 +41,7 @@ This option set temporary the memory limit php option to 512M
4141
With a setting to 1Giga of memory:
4242

4343
```
44-
docker run --rm -v $(pwd):/app vfac/php7compatibility 7.2 -d memory_limit=1G .
44+
docker run --rm -v $(pwd):/app vfac/php7compatibility 7.4 -d memory_limit=1G .
4545
```
4646

4747
#### File extensions
@@ -61,7 +61,7 @@ Several extensions can be add, with a comma separation
6161
Example
6262

6363
```
64-
docker run --rm -v $(pwd):/app vfac/php7compatibility 7.1 --extensions=php .
64+
docker run --rm -v $(pwd):/app vfac/php7compatibility 7.4 --extensions=php .
6565
```
6666

6767
#### Ignoring files and folders
@@ -81,13 +81,13 @@ Several paths can be add, with a comma separation
8181
Exemple
8282

8383
```
84-
docker run --rm -v $(pwd):/app vfac/php7compatibility 7.1 --ignore=vendor .
84+
docker run --rm -v $(pwd):/app vfac/php7compatibility 7.4 --ignore=vendor .
8585
```
8686

87-
### <path>
87+
### path
8888

8989
Path to inspect into current directory. To inspect all files in current directory use `.`
9090

9191
```
92-
docker run --rm -v $(pwd):/app vfac/php7compatibility 7.1 .
92+
docker run --rm -v $(pwd):/app vfac/php7compatibility 7.4 .
9393
```

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
"name": "php7compatibility",
33
"description": "PHP 7.x compatibility checker",
44
"require-dev": {
5-
"squizlabs/php_codesniffer": "3.4.2",
6-
"phpcompatibility/php-compatibility": "9.2.0"
5+
"squizlabs/php_codesniffer": "3.5.3",
6+
"phpcompatibility/php-compatibility": "9.3.5"
77
},
8-
"prefer-stable" : true,
8+
"prefer-stable": true,
99
"scripts": {
1010
"post-install-cmd": "\"vendor/bin/phpcs\" --config-set installed_paths /php7checker/vendor/phpcompatibility/php-compatibility/PHPCompatibility",
11-
"post-update-cmd" : "\"vendor/bin/phpcs\" --config-set installed_paths /php7checker/vendor/phpcompatibility/php-compatibility/PHPCompatibility"
11+
"post-update-cmd": "\"vendor/bin/phpcs\" --config-set installed_paths /php7checker/vendor/phpcompatibility/php-compatibility/PHPCompatibility"
1212
}
13-
}
13+
}

dependencies.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
collectors:
2+
- type: dockerfile
3+
path: Dockerfile
4+
actors:
5+
# pull requests for all major, minor, and patch updates
6+
- type: find-replace
7+
versions: "L.Y-alpine"
28

3-
- type: dockerfile
4-
path: Dockerfile
5-
actors:
6-
# pull requests for all major, minor, and patch updates
7-
- type: find-replace
8-
versions: "L.Y-alpine"
9-
10-
- type: php-composer
11-
path: /
12-
actors:
13-
# pull requests for all major, minor, and patch updates
149
- type: php-composer
15-
versions: "Y.Y.Y"
10+
path: /
11+
actors:
12+
# pull requests for all major, minor, and patch updates
13+
- type: php-composer
14+
versions: "Y.Y.Y"

0 commit comments

Comments
 (0)