-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
455993e
to
1366fc3
Compare
@@ -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 |
There was a problem hiding this comment.
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]; |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Jira: https://keboola.atlassian.net/browse/COM-622