Skip to content

Commit

Permalink
Upgrading
Browse files Browse the repository at this point in the history
  • Loading branch information
vfalies committed Jan 1, 2020
1 parent f264ed9 commit b77210b
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 30 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.7] - 2020-01-01

### Added

- Update phpcompatibility to 9.3.5
- Update php_codesniffer to 3.5.3
- update PHP Version base to 7.4

## [1.6] - 2019-08-25

### Changed
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM vfac/envdevphpbase:7.3-cli-alpine
FROM vfac/envdevphpbase:7.4-cli-alpine
LABEL maintainer="Vincent Faliès <vincent@vfac.fr>"

COPY composer.json /php7checker/composer.json
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

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

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ This container propose to check the compatibility of your code with PHP 7.x
docker run --rm -v $(pwd):/app vfac/php7compatibility <version> <option> <path>
```

### <version>
### version

PHP Version used to check code compatibility: 7.0, 7.1, 7.2, 7.3
PHP Version used to check code compatibility: 7.0, 7.1, 7.2, 7.3, 7.4

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

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

### <option>
### option

#### memory_limit
#### memory_limit

With large source code, you could have an error message like:
With large source code, you could have an error message like:

```
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
Expand All @@ -41,7 +41,7 @@ This option set temporary the memory limit php option to 512M
With a setting to 1Giga of memory:

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

#### File extensions
Expand All @@ -61,7 +61,7 @@ Several extensions can be add, with a comma separation
Example

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

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

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

### <path>
### path

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

```
docker run --rm -v $(pwd):/app vfac/php7compatibility 7.1 .
docker run --rm -v $(pwd):/app vfac/php7compatibility 7.4 .
```
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"name": "php7compatibility",
"description": "PHP 7.x compatibility checker",
"require-dev": {
"squizlabs/php_codesniffer": "3.4.2",
"phpcompatibility/php-compatibility": "9.2.0"
"squizlabs/php_codesniffer": "3.5.3",
"phpcompatibility/php-compatibility": "9.3.5"
},
"prefer-stable" : true,
"prefer-stable": true,
"scripts": {
"post-install-cmd": "\"vendor/bin/phpcs\" --config-set installed_paths /php7checker/vendor/phpcompatibility/php-compatibility/PHPCompatibility",
"post-update-cmd" : "\"vendor/bin/phpcs\" --config-set installed_paths /php7checker/vendor/phpcompatibility/php-compatibility/PHPCompatibility"
"post-update-cmd": "\"vendor/bin/phpcs\" --config-set installed_paths /php7checker/vendor/phpcompatibility/php-compatibility/PHPCompatibility"
}
}
}
23 changes: 11 additions & 12 deletions dependencies.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
collectors:
- type: dockerfile
path: Dockerfile
actors:
# pull requests for all major, minor, and patch updates
- type: find-replace
versions: "L.Y-alpine"

- type: dockerfile
path: Dockerfile
actors:
# pull requests for all major, minor, and patch updates
- type: find-replace
versions: "L.Y-alpine"

- type: php-composer
path: /
actors:
# pull requests for all major, minor, and patch updates
- type: php-composer
versions: "Y.Y.Y"
path: /
actors:
# pull requests for all major, minor, and patch updates
- type: php-composer
versions: "Y.Y.Y"

0 comments on commit b77210b

Please sign in to comment.