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

[1.0.0] Use Options objects instead of arrays. #64

Merged
merged 3 commits into from
Jun 6, 2023

Conversation

ChadSikorra
Copy link
Contributor

@ChadSikorra ChadSikorra commented Jun 6, 2023

This is a large breaking change, but it is necessary. The array options have been a pain for quite some time. This provides type safety and less confusion over making sure every option is named properly in the array. It also provides a way to reject certain bad option values.

For most users of the library, switching over to this should be straight forward, and the 1.0.0 release will be the one time to finally make this change.

#50

@ChadSikorra ChadSikorra force-pushed the v1-options_objects branch 6 times, most recently from 552a333 to 21c42a0 Compare June 6, 2023 15:33
… associative arrays. This provides more clarity around what the options are and actual type enforcement around values.
@codecov
Copy link

codecov bot commented Jun 6, 2023

Codecov Report

Merging #64 (847fdd3) into 1.0 (6ac7183) will increase coverage by 0.00%.
The diff coverage is 79.80%.

@@            Coverage Diff             @@
##                1.0      #64    +/-   ##
==========================================
  Coverage     86.96%   86.96%            
- Complexity     1811     1867    +56     
==========================================
  Files           129      131     +2     
  Lines          5278     5447   +169     
==========================================
+ Hits           4590     4737   +147     
- Misses          688      710    +22     
Impacted Files Coverage Δ
...tocol/ClientProtocolHandler/ClientBasicHandler.php 100.00% <ø> (ø)
...ol/ClientProtocolHandler/ClientStartTlsHandler.php 100.00% <ø> (ø)
...ol/ServerProtocolHandler/ServerAnonBindHandler.php 66.66% <ø> (ø)
...otocol/ServerProtocolHandler/ServerBindHandler.php 81.81% <ø> (ø)
...ol/ServerProtocolHandler/ServerDispatchHandler.php 100.00% <ø> (ø)
...ocol/ServerProtocolHandler/ServerPagingHandler.php 92.45% <ø> (ø)
...ProtocolHandler/ServerPagingUnsupportedHandler.php 100.00% <ø> (ø)
...ocol/ServerProtocolHandler/ServerSearchHandler.php 100.00% <ø> (ø)
...ocol/ServerProtocolHandler/ServerUnbindHandler.php 100.00% <ø> (ø)
...ocol/ServerProtocolHandler/ServerWhoAmIHandler.php 100.00% <ø> (ø)
... and 16 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@ChadSikorra ChadSikorra merged commit c65915f into FreeDSx:1.0 Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant