Skip to content

Conversation

@fraggerfox
Copy link
Collaborator

@fraggerfox fraggerfox commented Dec 19, 2024

This pull request includes several changes to improve type annotations, add missing dependencies, and enhance error handling. The most important changes include updating composer.json to add required extensions and packages, adding type annotations across multiple files, and refining error handling in the Callback class.

Dependencies and requirements:

  • composer.json: Added ext-json, ext-openssl, and ext-curl as required extensions, and added friendsofphp/php-cs-fixer to the dev dependencies. [1] [2]

Type annotations:

Error handling:

Other minor improvements:

  • Added missing type annotations for exception classes in src/Exception/CallbackException.php, src/Exception/CryptoFailedException.php, src/Exception/DecryptionFailedException.php, src/Exception/InvalidSecretException.php, src/Exception/NotImplementedException.php, and src/Exception/SameSiteCallbackException.php. [1] [2] [3] [4] [5] [6] [7]
  • Minor formatting adjustments in src/Handler/Auth.php and src/Handler/Invite.php. [1] [2] [3] [4] [5]

@fraggerfox fraggerfox self-assigned this Dec 19, 2024
@codecov
Copy link

codecov bot commented Dec 19, 2024

Codecov Report

Attention: Patch coverage is 70.96774% with 18 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/Utils/CurlWrapper.php 0.00% 5 Missing ⚠️
src/Type/AuthUpdates.php 0.00% 3 Missing ⚠️
src/Handler/Invite.php 50.00% 2 Missing ⚠️
src/HelloClient.php 0.00% 2 Missing ⚠️
src/Renderers/DefaultPageRenderer.php 0.00% 2 Missing ⚠️
src/Utils/HelloString.php 0.00% 2 Missing ⚠️
src/HelloResponse/HelloResponse.php 0.00% 1 Missing ⚠️
src/Type/Auth.php 87.50% 1 Missing ⚠️
Files with missing lines Coverage Δ Complexity Δ
src/Config/Constants.php 100.00% <100.00%> (ø) 2.00 <2.00> (ø)
src/Config/HelloConfig.php 100.00% <ø> (ø) 22.00 <0.00> (ø)
src/Config/HelloConfigBuilder.php 100.00% <ø> (ø) 22.00 <0.00> (ø)
src/Exception/CallbackException.php 100.00% <ø> (ø) 2.00 <0.00> (ø)
src/Exception/SameSiteCallbackException.php 0.00% <ø> (ø) 1.00 <0.00> (ø)
src/Handler/Auth.php 60.00% <ø> (ø) 6.00 <0.00> (ø)
src/Handler/Callback.php 66.86% <100.00%> (+0.20%) 38.00 <0.00> (ø)
src/Handler/Login.php 96.72% <100.00%> (ø) 12.00 <0.00> (+1.00)
src/HelloRequest/HelloRequest.php 82.75% <100.00%> (ø) 13.00 <4.00> (ø)
src/Lib/AuthHelper.php 98.03% <100.00%> (+0.03%) 17.00 <0.00> (+1.00)
... and 17 more

@fraggerfox fraggerfox marked this pull request as ready for review December 21, 2024 18:06
@UnnikrishnanBhargavakurup UnnikrishnanBhargavakurup merged commit a4a9a9d into master Dec 21, 2024
4 of 7 checks passed
@UnnikrishnanBhargavakurup UnnikrishnanBhargavakurup deleted the fix-lint-issues branch December 21, 2024 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants