Skip to content

Commit

Permalink
Merge pull request #95 from podorozhny/patch-1
Browse files Browse the repository at this point in the history
fixed typo in readme
  • Loading branch information
willdurand committed May 24, 2017
2 parents 69e1885 + 285e517 commit 3a9fb1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ best media type has failed.

$negotiator = new \Negotiation\LanguageNegotiator();

$acceptLangageHeader = 'en; q=0.1, fr; q=0.4, fu; q=0.9, de; q=0.2';
$acceptLanguageHeader = 'en; q=0.1, fr; q=0.4, fu; q=0.9, de; q=0.2';
$priorities = array('de', 'fu', 'en');

$bestLanguage = $negotiator->getBest($acceptLangageHeader, $priorities);
$bestLanguage = $negotiator->getBest($acceptLanguageHeader, $priorities);

$type = $bestLanguage->getType();
// $type == 'fu';
Expand Down

0 comments on commit 3a9fb1d

Please sign in to comment.