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

Seal up AbstractPHPParser #746

Merged
merged 1 commit into from
May 20, 2024

Conversation

AJenbo
Copy link
Collaborator

@AJenbo AJenbo commented Apr 27, 2024

Mark functions that do not need to be overwritten as private in order to limit our API surface and what we would need to support going forward. If we need to overwrite any of these in future version of PHP we can expose them then and support them from that point on. The same can be done if this causes issues for down stream, but better to think about what we expose then to expose everything.

This allows us more freedom when refactoring, but also makes analyzers better able to conclude if code could potentially be extended with other input/output or is even unused.

@AJenbo AJenbo changed the base branch from master to 3.x April 27, 2024 19:53
@AJenbo AJenbo marked this pull request as draft April 27, 2024 20:09
@AJenbo AJenbo added this to the 3.0.0 milestone Apr 27, 2024
@AJenbo AJenbo force-pushed the private-AbstractPHPParser branch 6 times, most recently from e308ad8 to 386b97e Compare May 3, 2024 15:56
Copy link

codecov bot commented May 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.61%. Comparing base (06b3739) to head (136ebe6).

Additional details and impacted files
@@             Coverage Diff              @@
##                3.x     #746      +/-   ##
============================================
+ Coverage     89.59%   89.61%   +0.01%     
  Complexity     3418     3418              
============================================
  Files           144      144              
  Lines          9105     9105              
============================================
+ Hits           8158     8159       +1     
+ Misses          947      946       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AJenbo AJenbo force-pushed the private-AbstractPHPParser branch 6 times, most recently from 949e641 to ff87741 Compare May 8, 2024 14:57
@AJenbo AJenbo force-pushed the private-AbstractPHPParser branch 10 times, most recently from b900442 to 0a3dfce Compare May 14, 2024 16:18
@AJenbo AJenbo marked this pull request as ready for review May 14, 2024 16:21
@AJenbo AJenbo requested a review from kylekatarnls May 14, 2024 16:21
@AJenbo AJenbo force-pushed the private-AbstractPHPParser branch from 8e99b7a to 621e35f Compare May 14, 2024 16:37
kylekatarnls
kylekatarnls previously approved these changes May 14, 2024
@AJenbo AJenbo force-pushed the private-AbstractPHPParser branch 2 times, most recently from e2b5910 to 75209d2 Compare May 14, 2024 17:27
@AJenbo AJenbo requested a review from kylekatarnls May 14, 2024 17:28
@AJenbo AJenbo force-pushed the private-AbstractPHPParser branch 10 times, most recently from 4e05081 to af15dd4 Compare May 19, 2024 20:04
@AJenbo AJenbo force-pushed the private-AbstractPHPParser branch from af15dd4 to 136ebe6 Compare May 20, 2024 18:44
@kylekatarnls kylekatarnls merged commit ebccf5d into pdepend:3.x May 20, 2024
14 of 15 checks passed
@AJenbo AJenbo deleted the private-AbstractPHPParser branch May 20, 2024 19:55
@AJenbo
Copy link
Collaborator Author

AJenbo commented May 20, 2024

Arh good to have this one in :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants