Merge remote branch 'sasezaki/fixed-typo-domcrawler'

* sasezaki/fixed-typo-domcrawler:
  fixed typoe on Exception message
This commit is contained in:
Fabien Potencier 2011-04-27 18:00:49 +02:00
commit 5fab450c33
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ class Link
public function __construct(\DOMNode $node, $currentUri, $method = 'get')
{
if (!in_array(substr($currentUri, 0, 4), array('http', 'file'))) {
throw new \InvalidArgumentException(sprintf('Current URI must be an asbolute URL ("%s").', $currentUri));
throw new \InvalidArgumentException(sprintf('Current URI must be an absolute URL ("%s").', $currentUri));
}
$this->setNode($node);