A block rendered by PHP at request time returns null from save, which means the post contains only the block comment and its attributes. Returning null is what…
Http::fake without an assertion tests that your code did not crash, which is not the same as testing that it called anything. The catch-all returning a 500 is…
PHP has no generics, so @return list<Order> is a promise to the analyser and a comment to the engine. The annotations are genuinely useful and are genuinely unenforced:…
Promoted properties are assigned before the constructor body runs, so validation in the body reads either the parameter or the property and gets the same value. Mixing promoted…
Octane keeps the application in memory between requests, so a static property set during one request is visible to the next one — including one belonging to a…
Octane rebinds the container per request, and an object that captured a dependency at construction keeps the old one. Injecting the container to avoid capturing is a pattern…