First steps.
Answer 3 of 4 correctly to clear this round.
Which stock row should the inventory function reject?
Give me a hint
Zero items is possible. Look at whether the quantity is a number or text.
Zero is a valid count or price. The function explicitly requires integers, and a JSON string stays a string after decoding.
Review the lessonWhere will Composer look for Workshop\Billing\Money with this mapping?
"Workshop\\": "src/"Give me a hint
The prefix already stands for the src directory. Which parts of the class name are left?
PSR-4 removes the matching namespace prefix and maps the remaining segments beneath src/.
Review the lessonThe estimate route requires units. What happens to this JSON-expecting request?
GET /lab/estimate
Accept: application/jsonGive me a hint
Compare the address with the example route. Is the path missing, or just its quantity?
The path matches a route. The request fails its required field rule inside that route.
Review the lessonThree items cost 399 cents each. Why keep the amount in cents until display?
Give me a hint
Try multiplying 399 by 3 first. Does that calculation need a decimal point?
For these prices, integer cents preserve the smallest currency unit throughout the calculation. Format the total at the display boundary.
Review the lessonRevisit the missed topics
This browser could not save your score.
My challenge recordEach answer is worth 25 points. Replays keep your highest score.