You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,21 +10,21 @@ This container propose to check the compatibility of your code with PHP 7.x
10
10
docker run --rm -v $(pwd):/app vfac/php7compatibility <version> <option> <path>
11
11
```
12
12
13
-
### <version>
13
+
### version
14
14
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
16
16
17
17
For instance to check code of the current directory in PHP version 7.1 :
18
18
19
19
```
20
-
docker run --rm -v $(pwd):/app vfac/php7compatibility 7.1 .
20
+
docker run --rm -v $(pwd):/app vfac/php7compatibility 7.4 .
21
21
```
22
22
23
-
### <option>
23
+
### option
24
24
25
-
####memory_limit
25
+
####memory_limit
26
26
27
-
With large source code, you could have an error message like:
27
+
With large source code, you could have an error message like:
28
28
29
29
```
30
30
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
41
41
With a setting to 1Giga of memory:
42
42
43
43
```
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 .
45
45
```
46
46
47
47
#### File extensions
@@ -61,7 +61,7 @@ Several extensions can be add, with a comma separation
61
61
Example
62
62
63
63
```
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 .
65
65
```
66
66
67
67
#### Ignoring files and folders
@@ -81,13 +81,13 @@ Several paths can be add, with a comma separation
81
81
Exemple
82
82
83
83
```
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 .
85
85
```
86
86
87
-
### <path>
87
+
### path
88
88
89
89
Path to inspect into current directory. To inspect all files in current directory use `.`
90
90
91
91
```
92
-
docker run --rm -v $(pwd):/app vfac/php7compatibility 7.1 .
92
+
docker run --rm -v $(pwd):/app vfac/php7compatibility 7.4 .
0 commit comments