Skip to content
This repository was archived by the owner on Sep 5, 2025. It is now read-only.

Return Type Hints Improvements#5

Merged
ujovlado merged 3 commits into
mainfrom
ondra-improvements
Aug 27, 2025
Merged

Return Type Hints Improvements#5
ujovlado merged 3 commits into
mainfrom
ondra-improvements

Conversation

@ondrajodas
Copy link
Copy Markdown
Contributor

@ondrajodas ondrajodas changed the base branch from main to AJDA-987-ondra August 26, 2025 11:33
@ondrajodas ondrajodas requested a review from odinuv August 26, 2025 11:33
Comment thread src/Client.php
string $branchId,
string $workspaceId,
array $requestBody,
int $maxWaitSeconds = self::DEFAULT_MAX_WAIT_SECONDS,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

mimo jiné jsem tu přidal nastavitelný čas na čekání na query

Comment thread src/Client.php Outdated
}
}

/** @phpstan-ignore-next-line */
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

co se tady ignoruje? vypadá to, že už je to všechno zkontrolovaný

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

array{queryJobId: string, status: string, statements: array<array<string, mixed>>, results: array<array{columns: array<array{name: string, type: 'text'}>, data: array<array<int, string>>, status: string, rowsAffected: int}>} - should return
array{queryJobId: string, status: 'completed', statements: mixed, results: array<int<0, max>, array{columns: array<int, array{name: string, type: 'text'}>, data: array<array<int, string>>, status: string, rowsAffected: int}>} - but returns

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nojo, tak to je ale fixnutelny, on to nebere, protože tady je to celý v ifu https://github.com/keboola/query-api-php-client/pull/5/files#diff-40d7473316ef0bb3ba4c4d937b16ae3d1cc47e0d65815034ee2b5be6a74cb11eR241 kterej nevyhodí invalid response

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ok upravil jsem to ještě takhle 28be321

Comment thread tests/Functional/BasicQueryTest.php Outdated
assert(isset($row[0]) && is_string($row[0]));
$this->assertArrayHasKey(0, $row);
$this->assertIsString($row[0]);
$this->assertNotEmpty($row[0]);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

btw tohle všechno má bejt self:: to jsou ty generátory 🙄

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

🎉 f34596d

@ondrajodas ondrajodas requested a review from ujovlado August 27, 2025 06:51
Base automatically changed from AJDA-987-ondra to main August 27, 2025 07:05
@ujovlado ujovlado force-pushed the ondra-improvements branch from fcafebf to 9bf9729 Compare August 27, 2025 07:06
@ujovlado ujovlado merged commit 1152f54 into main Aug 27, 2025
1 check passed
@ujovlado ujovlado deleted the ondra-improvements branch August 27, 2025 07:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants