Fixed fetching data

Signed-off-by: Roland Dalmulder <contact@rolandd.com>
This commit is contained in:
Roland Dalmulder 2023-08-21 20:37:40 +02:00
parent 96b8480c51
commit c1b1209f63
No known key found for this signature in database
GPG Key ID: 6D30CD38749A5B9E
3 changed files with 16 additions and 16 deletions

View File

@ -47,7 +47,7 @@ class FetchController extends BaseController
try {
$page = $session->get('com_patchtester_fetcher_page', 1);
/** @var PullsModel $model */
$model = $this->app->bootComponent('com_patchtester')->getMVCFactory()->createModel('Pulls', 'Administrator', ['ignore_request' => true]);
$model = $this->app->bootComponent('com_patchtester')->getMVCFactory()->createModel('Pulls', 'Administrator');
$status = $model->requestFromGithub($page);
} catch (Exception $e) {

View File

@ -14,7 +14,7 @@ use Joomla\Registry\Registry;
*/
trait GithubCredentialsTrait
{
protected function getCredentials() {
protected function getCredentials(): Registry {
$state = new Registry();
$params = ComponentHelper::getParams('com_patchtester');
$state->set('github_user', $params->get('org', 'joomla'));