https://github.com/maymeow/cakephp-upgrade-tool-in-docker
Dockerized version of CakePHP Upgrade tool https://github.com/cakephp/upgrade
https://github.com/maymeow/cakephp-upgrade-tool-in-docker
Last synced: 6 months ago
JSON representation
Dockerized version of CakePHP Upgrade tool https://github.com/cakephp/upgrade
- Host: GitHub
- URL: https://github.com/maymeow/cakephp-upgrade-tool-in-docker
- Owner: MayMeow
- License: mit
- Created: 2022-05-05T12:17:46.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-05T12:19:55.000Z (about 4 years ago)
- Last Synced: 2025-05-18T21:07:04.845Z (about 1 year ago)
- Language: Dockerfile
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Dockerized CakePHP Upgrade tool
This is for us who use docker for php development.
## Build and run script
```bash
docker build -t cake-upgrade-tool .
cd /path/to/your/application
docker run --rm --volume $(pwd):/app cake-upgrade-tool sh -c "bin/cake upgrade rector --rules cakephp43 /app/src"
```
Script above will upgrade version of your application for using `CakePHP 4.3.x`
## Issues
When you getting something like this
```bash
0%Fatal error: Class PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTextNode contains 3 abstract methods and must therefore be declared abstract or implement the remaining methods (PHPStan\PhpDocParser\Ast\Node::setAttribute, PHPStan\PhpDocParser\Ast\Node::hasAttribute, PHPStan\PhpDocParser\Ast\Node::getAttribute) in /app/vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/PhpDocTextNode.php on line 5
```
Prior to this issue `https://github.com/cakephp/upgrade/issues/173` you have to remove `vendor/phpstan` directory to make this successfull.