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

add types for missing ones and bring psalm-baseline down to zero #1645

Merged
merged 2 commits into from
Jan 2, 2023

Conversation

szaimen
Copy link
Collaborator

@szaimen szaimen commented Jan 2, 2023

Signed-off-by: Simon L szaimen@e.mail.de

@szaimen szaimen added 2. developing Work in progress enhancement New feature or request labels Jan 2, 2023
@szaimen szaimen added this to the next milestone Jan 2, 2023
php/public/index.php Outdated Show resolved Hide resolved
Signed-off-by: Simon L <szaimen@e.mail.de>
@szaimen szaimen added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jan 2, 2023
@szaimen szaimen marked this pull request as ready for review January 2, 2023 12:18
@szaimen szaimen changed the title add types for missing ones add types for missing ones and bring psalm-baseline down to zero Jan 2, 2023
@szaimen szaimen requested a review from come-nc January 2, 2023 12:37
Copy link

@come-nc come-nc left a comment

Choose a reason for hiding this comment

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

@@ -140,7 +142,7 @@
});

// Auth Redirector
$app->get('/', function (\Psr\Http\Message\RequestInterface $request, \Psr\Http\Message\ResponseInterface $response, $args) use ($container) {
$app->get('/', function (\Psr\Http\Message\RequestInterface $request, Response $response, mixed $args) use ($container) {
Copy link

Choose a reason for hiding this comment

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

Suggested change
$app->get('/', function (\Psr\Http\Message\RequestInterface $request, Response $response, mixed $args) use ($container) {
$app->get('/', function (Request $request, Response $response, mixed $args) use ($container) {

consistency

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, RequestInterface should be correct IIRC... (It is not a ServerRequest but a Client-Side request IIRC)...

Copy link

Choose a reason for hiding this comment

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

Name is misleading then, maybe import both as Request and ServerRequest to avoid the confusion.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

sorry, saw this too late

Signed-off-by: Simon L <szaimen@e.mail.de>
@szaimen
Copy link
Collaborator Author

szaimen commented Jan 2, 2023

I think $args should be array: https://www.slimframework.com/docs/v4/objects/routing.html#route-callbacks

Thanks for figuring this out! Fixed :)

@szaimen szaimen requested a review from come-nc January 2, 2023 14:47
Copy link
Member

@juliushaertl juliushaertl left a comment

Choose a reason for hiding this comment

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

Nice even at errorLevel 2 🎉

@szaimen
Copy link
Collaborator Author

szaimen commented Jan 2, 2023

Thanks a lot guys! :)

@szaimen szaimen merged commit 3e8cdf1 into main Jan 2, 2023
@delete-merged-branch delete-merged-branch bot deleted the enh/noid/add-types branch January 2, 2023 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants