Skip to content

Commit

Permalink
Zend_Rest_Route::getInstance() late static binding
Browse files Browse the repository at this point in the history
  • Loading branch information
techi602 committed Jun 1, 2022
1 parent 4733a03 commit 538eedf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/Zend/Rest/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ public function __construct(Zend_Controller_Front $front,

/**
* Instantiates route based on passed Zend_Config structure
*
* @return static
*/
public static function getInstance(Zend_Config $config)
{
Expand All @@ -107,7 +109,7 @@ public static function getInstance(Zend_Config $config)
}
}

return new self($frontController, $defaultsArray, $restfulConfigArray);
return new static($frontController, $defaultsArray, $restfulConfigArray);
}

/**
Expand Down

0 comments on commit 538eedf

Please sign in to comment.