Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CsrfVerifier::$except must be an array; it is an array though #8

Open
joelataylor opened this issue Mar 12, 2024 · 0 comments
Open

Comments

@joelataylor
Copy link

joelataylor commented Mar 12, 2024

Fatal error: Type of Demo\Middlewares\CsrfVerifier::$except must be array (as in class Pecee\Http\Middleware\BaseCsrfVerifier) in /var/www/html/app/Middlewares/CsrfVerifier.php on line 6

I'm confused; because the value of $except is ['/api/*'] - an array.

https://github.com/skipperbent/simple-router-demo/blob/master/app/Middlewares/CsrfVerifier.php#L11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant