Oh man, parse errors are the worst. That "unexpected '}'" usually means you've got an extra curly brace *somewhere* before line 42.
Try collapsing your code blocks in your editor (if it supports it)—sometimes hiding chunks makes the rogue brace stand out.
Also, paste your code into a linter like [PHP Code Checker](https://phpcodechecker.com/)—it’s saved me *so* many times.
Try collapsing your code blocks in your editor (if it supports it)—sometimes hiding chunks makes the rogue brace stand out.
Also, paste your code into a linter like [PHP Code Checker](https://phpcodechecker.com/)—it’s saved me *so* many times.
