Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix types, explicitly define type #33

Merged
merged 1 commit into from
Jan 13, 2021

Conversation

michaljurecko
Copy link
Contributor

@michaljurecko michaljurecko commented Jan 13, 2021

@michaljurecko michaljurecko force-pushed the webrouse-COM-622-fix-types branch from 455993e to 1366fc3 Compare January 13, 2021 09:38
@@ -5,7 +5,7 @@ php --version

echo "Starting tests" >&1
./vendor/bin/phpcs -n --ignore=vendor,.tmp --extensions=php .
./vendor/bin/phpstan analyse --level=max --no-progress -c phpstan.neon Client Config Exception Pagination Parser Tests
php -d memory_limit=2G ./vendor/bin/phpstan analyse --level=max --no-progress -c phpstan.neon Client Config Exception Pagination Parser Tests
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Phpstanu uz nestacila pamat.

@@ -125,6 +125,6 @@ private function getParams(JobConfig $jobConfig): array
private function getLimit(JobConfig $jobConfig): int
{
$params = $jobConfig->getParams();
return empty($params[$this->limitParam]) ? $this->limit : $params[$this->limitParam];
return empty($params[$this->limitParam]) ? $this->limit : (int) $params[$this->limitParam];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tu bol problem -> doplnil som pretypovanie, klient tam daval string, a skontroloval som aj ostatne miesta, kde by sa hodilo pretypovanie.

'endpoint' => 'test',
'params' => [
'startAt' => 3,
'limit' => (string) $limit,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test.

Copy link
Contributor

@ondrajodas ondrajodas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@michaljurecko michaljurecko merged commit 5dbe45a into master Jan 13, 2021
@michaljurecko michaljurecko deleted the webrouse-COM-622-fix-types branch January 13, 2021 09:52
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants