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

[BUGFIX] Streamline constructon methods of Entrypoint class #9

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

eliashaeussler
Copy link
Owner

The two construction methods Entrypoint::__construct() and Entrypoint::fromConfig() behaved differently for both entrypoint properties. In case the default constructor is used, the path was treated as relative to the web directory, whereas the static constructor method stored them as absolute paths.

This is now resolved and both entrypoints are always stored as paths relative to the web directory.

@eliashaeussler eliashaeussler added the bug Something isn't working label Sep 6, 2023
@eliashaeussler eliashaeussler self-assigned this Sep 6, 2023
@codeclimate
Copy link

codeclimate bot commented Sep 6, 2023

Code Climate has analyzed commit 8ec8406 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 77.6% (0.0% change).

View more on Code Climate.

@codecov
Copy link

codecov bot commented Sep 6, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (b061c7d) 77.68% compared to head (8ec8406) 77.68%.

Additional details and impacted files
@@            Coverage Diff            @@
##               main       #9   +/-   ##
=========================================
  Coverage     77.68%   77.68%           
  Complexity       40       40           
=========================================
  Files            10       10           
  Lines           121      121           
=========================================
  Hits             94       94           
  Misses           27       27           
Files Changed Coverage Δ
src/ValueObject/Entrypoint.php 100.00% <100.00%> (ø)

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

@eliashaeussler eliashaeussler merged commit 10595e0 into main Sep 6, 2023
13 checks passed
@eliashaeussler eliashaeussler deleted the fix/entrypoint-paths branch September 6, 2023 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant