Skip to content

Commit

Permalink
Correct a typo in variable-name.
Browse files Browse the repository at this point in the history
  • Loading branch information
phreaknerd committed Jan 26, 2012
1 parent 38c854c commit 3f993fe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/Doctrine/Common/Annotations/AnnotationRegistry.php
Expand Up @@ -77,19 +77,19 @@ static public function registerAutoloadNamespaces(array $namespaces)
}

/**
* Register an autoloading callabale for annotations, much like spl_autoload_register().
* Register an autoloading callable for annotations, much like spl_autoload_register().
*
* NOTE: These class loaders HAVE to be silent when a class was not found!
* IMPORTANT: Loaders have to return true if they loaded a class that could contain the searched annotation class.
*
* @param callabale $callabale
* @param callable $callable
*/
static public function registerLoader($callabale)
static public function registerLoader($callable)
{
if (!is_callable($callabale)) {
if (!is_callable($callable)) {
throw new \InvalidArgumentException("A callable is expected in AnnotationRegistry::registerLoader().");
}
self::$loaders[] = $callabale;
self::$loaders[] = $callable;
}

/**
Expand Down

0 comments on commit 3f993fe

Please sign in to comment.