mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-14 01:55:46 +00:00
Bump to PHP 8.0+
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
This commit is contained in:
1 parent
f7a3312e6b
commit
081c69b864
11 files changed
+87
-4602
No files matched your search
@@ -25,7 +25,7 @@ $items = [
|
||||
$app = new GildedRose($items);
|
||||
|
||||
$days = 2;
|
||||
if (count($argv) > 1) {
|
||||
if ((is_countable($argv) ? count($argv) : 0) > 1) {
|
||||
$days = (int) $argv[1];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user