encodePassword($raw, $salt); } public function needsRehash(string $encoded): bool { // check whether the current password is hash using an outdated encoder $hashIsOutdated = false; return $hashIsOutdated; } }