Skip to content

Commit

Permalink
Merge pull request doctrine#99 from phreaknerd/fix_some_typos
Browse files Browse the repository at this point in the history
Correct a typo in variable-name.
  • Loading branch information
stof committed Jan 26, 2012
2 parents 38c854c + 3f993fe commit fc26d10
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/Doctrine/Common/Annotations/AnnotationRegistry.php
Original file line number Diff line number Diff line change
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 fc26d10

Please sign in to comment.