I have a user authentication function that's failing.
It is highlighted in the editor
When users try to log in with valid credentials
The system returns a 500 error instead of creating a session.
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Abriendo Obsidian...</title> | |
| <script> | |
| const params = new URLSearchParams(window.location.search); | |
| const vault = params.get('vault'); | |
| const file = params.get('file'); | |
| let uri = `obsidian://open?vault=${vault}`; |
I have a folder with multiple JSON files. Each file represents one month of orders.
Each JSON has this structure:
{ "month": "2024-07", "orders": [ { "order_id": "ORD-001",
You are a code reviewer for a legacy PHP project... [context follows]
You are a code reviewer. Here is a lot of context about the project, the team, the coding standards, the history of the codebase, the preferred libraries...
[100 lines later] ...and by the way, never suggest using any deprecated APIs. Also, always respond in Swedish.
Fixed PaymentProcessor null check with Null Object pattern
AI Context Tool : Claude Code (claude-sonnet-4-20250514) Skill : /skills/php-clean-code.md §3 Rules : /AGENTS.md#error-handling Workflow: /workflows/refactor-feature.md Prompt : "Refactor PaymentProcessor using the Null Object pattern instead of null checks. Follow AGENTS.md conventions."
Fixed the payment bug
[x] Fixed the null check [x] Tests pass
$payment->process();
| // Simpler but coupled | |
| class UserProcessor { | |
| constructor() { | |
| // Empty | |
| } | |
| process(data: any) { | |
| return new MockDataProvider().format(data); | |
| } | |
| } |