Commit 4edcc321 authored by Taylor Otwell's avatar Taylor Otwell

fixed bug in route to controller delegation.

parent f50a4925
......@@ -135,7 +135,7 @@ class Caller {
*/
protected function callable($method)
{
return $method == 'before' or $method == 'after' or strncmp($method, '_', 1) === 0;
return $method !== 'before' and $method !== 'after' and strncmp($method, '_', 1) !== 0;
}
/**
......
......@@ -136,7 +136,7 @@ class Route {
*/
public function delegates()
{
return is_array($this->callback) and isset($this->callback['delegate']);
return is_string($this->callback) or (is_array($this->callback) and isset($this->callback['delegate']));
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment