Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'develop' of git://github.com/zendframework/zf2 into dev…
Browse files Browse the repository at this point in the history
…elop
  • Loading branch information
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/Page/AbstractPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ public function set($property, $value)
);
}

$method = 'set' . self::normalizePropertyName($property);
$method = 'set' . static::normalizePropertyName($property);

if ($method != 'setOptions' && method_exists($this, $method)
) {
Expand Down Expand Up @@ -907,7 +907,7 @@ public function get($property)
);
}

$method = 'get' . self::normalizePropertyName($property);
$method = 'get' . static::normalizePropertyName($property);

if (method_exists($this, $method)) {
return $this->$method();
Expand Down Expand Up @@ -963,7 +963,7 @@ public function __get($name)
*/
public function __isset($name)
{
$method = 'get' . self::normalizePropertyName($name);
$method = 'get' . static::normalizePropertyName($name);
if (method_exists($this, $method)) {
return true;
}
Expand All @@ -982,7 +982,7 @@ public function __isset($name)
*/
public function __unset($name)
{
$method = 'set' . self::normalizePropertyName($name);
$method = 'set' . static::normalizePropertyName($name);
if (method_exists($this, $method)) {
throw new Exception\InvalidArgumentException(
sprintf(
Expand Down
6 changes: 3 additions & 3 deletions src/Page/Mvc.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public function getHref()

$router = $this->router;
if (null === $router) {
$router = self::$defaultRouter;
$router = static::$defaultRouter;
}

if (!$router instanceof RouteStackInterface) {
Expand Down Expand Up @@ -411,7 +411,7 @@ public function setRouter(RouteStackInterface $router)
*/
public static function setDefaultRouter($router)
{
self::$defaultRouter = $router;
static::$defaultRouter = $router;
}

/**
Expand All @@ -421,7 +421,7 @@ public static function setDefaultRouter($router)
*/
public static function getDefaultRouter()
{
return self::$defaultRouter;
return static::$defaultRouter;
}

// Public methods:
Expand Down

0 comments on commit 789b92c

Please sign in to comment.