Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metoda ConfigHelper::getConfig zwraca błędny typ zmiennej #2397

Open
interduo opened this issue Sep 19, 2023 · 0 comments
Open

Metoda ConfigHelper::getConfig zwraca błędny typ zmiennej #2397

interduo opened this issue Sep 19, 2023 · 0 comments
Labels

Comments

@interduo
Copy link
Collaborator

Opis błędu
Mimo wybranego typu w konfiguracji - metoda ConfigHelper::getConfig zwraca zawsze zmienną o typie string.
image

Odtworzenie problemu
Kroki odtwarzające błędne zachowanie:

  1. Gdzieś w skryptach na końcu dodajmy fragment kodu:
#v+
$test_test = ConfigHelper::getConfig('test.test');
var_dump($test_test); die();
#v-
  1. Dodajemy zmienną test.test o dowolnym określonym typie w UI.
  2. Uruchamiamy testowy-edytowany skrypt: /var/www/html/lms# bin/lms-test.php -q
  3. Otrzymujemy:
    string(1) "1"

Oczekiwane zachowanie
ConfigHelper powinien zwrócić wartość o typie zadeklarowanym w konfiguracji UI.

@interduo interduo added the BUG label Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant