chore: decrease sellIn value for all other items

This commit is contained in:
EmanFateen 2025-11-22 22:54:56 +02:00
parent da3c2f5554
commit a7d48bbf13

View File

@ -48,9 +48,8 @@ final class GildedRose
} }
} }
if ($item->name != 'Sulfuras, Hand of Ragnaros') {
$item->sellIn = $item->sellIn - 1; $item->sellIn--;
}
if ($item->sellIn < 0) { if ($item->sellIn < 0) {
if ($item->name === 'Aged Brie') { if ($item->name === 'Aged Brie') {