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

[v1.0.0] Bump to PHP 8.1 and adjust the code. #57

Merged
merged 16 commits into from
Jun 2, 2023

Conversation

ChadSikorra
Copy link
Contributor

@ChadSikorra ChadSikorra commented Jun 1, 2023

As part of an eventual 1.0.0 release, I'm dropping support for old PHP versions. Since PHP 7.4 is EOL and 8.0 is going EOL this November, I'm making the decision to just use PHP 8.1.

As part of this, I'm updating the code to use actual return types / property types wherever possible. I've also re-evaluated visibility for many properties. This is a large change, but there is also good code coverage with both unit and integration tests, so I feel comfortable with it.

#50
#48

@codecov
Copy link

codecov bot commented Jun 2, 2023

Codecov Report

Merging #57 (214e5d9) into 1.0 (51935ed) will increase coverage by 1.66%.
The diff coverage is 92.82%.

@@             Coverage Diff              @@
##                1.0      #57      +/-   ##
============================================
+ Coverage     85.10%   86.77%   +1.66%     
+ Complexity     3660     1795    -1865     
============================================
  Files           256      128     -128     
  Lines          9472     5178    -4294     
============================================
- Hits           8061     4493    -3568     
+ Misses         1411      685     -726     
Impacted Files Coverage Δ
src/FreeDSx/Ldap/Control/Vlv/VlvTrait.php 100.00% <ø> (ø)
src/FreeDSx/Ldap/Entry/EscapeTrait.php 80.00% <ø> (ø)
src/FreeDSx/Ldap/Exception/OperationException.php 100.00% <ø> (ø)
src/FreeDSx/Ldap/LdapServer.php 72.41% <ø> (ø)
...ProtocolHandler/ClientExtendedOperationHandler.php 86.66% <ø> (-0.84%) ⬇️
...ol/ClientProtocolHandler/ClientProtocolContext.php 92.30% <ø> (ø)
...ocol/ClientProtocolHandler/ClientUnbindHandler.php 100.00% <ø> (ø)
...Ldap/Protocol/Factory/ServerBindHandlerFactory.php 100.00% <ø> (ø)
.../Protocol/Factory/ServerProtocolHandlerFactory.php 100.00% <ø> (ø)
...otocol/ServerProtocolHandler/BaseServerHandler.php 100.00% <ø> (ø)
... and 114 more

... and 128 files with indirect coverage changes

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

Use named params in many spots / fix formatting to make the code easier to follow.
@ChadSikorra
Copy link
Contributor Author

Merging this in, as I will not be tagging 1.0 for a while, though the branch will exist. I still want to add strict types to all classes as well and do other clean up.

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

Successfully merging this pull request may close these issues.

1 participant