Quantcast
Channel: Unexpected PHP Parse Error - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Brandon for Unexpected PHP Parse Error

This should be:private $validationCallback;public function __construct(){ $this->validationCallback = function($credential, $passwordHash){ if (has('md5', $credential) === $passwordHash) { return...

View Article



Answer by Nadeem Khan for Unexpected PHP Parse Error

Anonymous functions need a semicolon at the end. Try this:private $validationCallback;public function __construct(){$this->validationCallback = function($credential, $passwordHash){if (has('md5',...

View Article

Unexpected PHP Parse Error

I realise that the answer to this question is probably going to be simply obvious, but I am stumped.I've created a class that uses Jeremy Kendall's Password Validator...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images