Skip to content

Commit

Permalink
Use Objects::stringOf() instead of xp::stringOf()
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Dec 1, 2019
1 parent 329b636 commit df353d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/php/webservices/rest/Links.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
use lang\FormatException;
use lang\Value;
use text\StringTokenizer;
use util\Objects;

/**
* Link header
Expand All @@ -25,7 +26,7 @@ class Links implements Value {
private function expect($st, $tokens) {
$parsed= $st->nextToken($tokens);
if (null === $parsed || false === strpos($tokens, $parsed)) {
throw new FormatException('Expected ['.$tokens.'], have '.\xp::stringOf($parsed));
throw new FormatException('Expected ['.$tokens.'], have '.Objects::stringOf($parsed));
}
return $parsed;
}
Expand Down

0 comments on commit df353d4

Please sign in to comment.