mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 12:22:12 +00:00
PHP 7.4 was end of life November 2022, it's time to bump to PHP 8 standard 🎉
- updated starting code to PHP 8 standard
- upgraded tooling (code quality, static analysis) to the latest versions
- tested with PHP 8.0, 8.1 and 8.2
- the fixture is working
- the example test is failing, as expected
- code quality is as expected
- static analysis is ok
34 lines
901 B
JSON
34 lines
901 B
JSON
{
|
|
"name": "emilybache/gilded-rose-refactoring-kata",
|
|
"description": "A kata to practice refactoring, tests and polymorphism",
|
|
"license": "MIT",
|
|
"require": {
|
|
"php": "^8.0"
|
|
},
|
|
"require-dev": {
|
|
"approvals/approval-tests": "dev-Main",
|
|
"phpunit/phpunit": "^9.5",
|
|
"phpstan/phpstan": "^1.9",
|
|
"phpstan/phpstan-phpunit": "^1.3",
|
|
"symplify/easy-coding-standard": "^11.1",
|
|
"symplify/phpstan-extensions": "^11.1"
|
|
},
|
|
"autoload": {
|
|
"psr-4": {
|
|
"GildedRose\\": "src/"
|
|
}
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": {
|
|
"Tests\\": "tests/"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"tests": "phpunit",
|
|
"test-coverage": "phpunit --coverage-html build/coverage",
|
|
"check-cs": "ecs check",
|
|
"fix-cs": "ecs check --fix",
|
|
"phpstan": "phpstan analyse --ansi"
|
|
}
|
|
}
|