Skip to content

Commit

Permalink
Merge pull request #11 from PrestaShopCorp/fix/revert-user-token-repo
Browse files Browse the repository at this point in the history
fix: revert UserTokenRepository
  • Loading branch information
jokesterfr authored Aug 14, 2024
2 parents 0c77a56 + 8b3a3a2 commit 008ef88
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/quality-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ jobs:
timeout-minutes: 15
strategy:
matrix:
# @TODO: "1.6.1.24" is temporarily disabled here
ps_version: ["1.7.8.10", "8.1.6"]
ps_version: ["1.7.8.10", "8.1.7"]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -75,7 +74,7 @@ jobs:
if: ${{ github.event_name == 'pull_request' }}
strategy:
matrix:
ps_version: ["1.7.8.10", "8.1.4", "nightly"]
ps_version: ["1.7.8.10", "8.1.7", "nightly"]
steps:
- name: Checkout the repository
uses: actions/checkout@v4
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ lint: php-cs-fixer php-lint
docker-lint: docker-php-cs-fixer docker-php-lint

# target: lint-fix (or docker-lint-fix) - Automatically fix the linting errors
.PHONY: lint-fix docker-lint-fix
.PHONY: lint-fix docker-lint-fix fix
fix: lint-fix
lint-fix: php-cs-fixer-fix
docker-lint-fix: docker-php-cs-fixer-fix

Expand Down
4 changes: 4 additions & 0 deletions config/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ services:
PrestaShop\Module\PsAccounts\Presenter\PsAccountsPresenter:
class: PrestaShop\Module\PsAccounts\Presenter\PsAccountsPresenter
public: true

PrestaShop\Module\PsAccounts\Repository\UserTokenRepository:
class: PrestaShop\Module\PsAccounts\Repository\UserTokenRepository
public: true
18 changes: 18 additions & 0 deletions src/Repository/UserTokenRepository.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace PrestaShop\Module\PsAccounts\Repository;

class UserTokenRepository
{
public function __construct()
{
}

/**
* @return string
*/
public function getOrRefreshToken()
{
return 'token';
}
}
3 changes: 3 additions & 0 deletions tests/phpstan/phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ parameters:
reportUnmatchedIgnoredErrors: false
ignoreErrors:
- identifier: missingType.iterableValue
- '#Property Ps_accounts::\$serviceContainer has unknown class PrestaShop\\ModuleLibServiceContainer\\DependencyInjection\\ServiceContainer as its type.#'
- '#Instantiated class PrestaShop\\ModuleLibServiceContainer\\DependencyInjection\\ServiceContainer not found.#'
- '#Call to method getService\(\) on an unknown class PrestaShop\\ModuleLibServiceContainer\\DependencyInjection\\ServiceContainer.#'
level: 9

0 comments on commit 008ef88

Please sign in to comment.