Skip to content

fix: Add support for relative file path in link #6

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

Merged
merged 1 commit into from
Sep 10, 2024
Merged

fix: Add support for relative file path in link #6

merged 1 commit into from
Sep 10, 2024

Conversation

Staormin
Copy link
Contributor

@Staormin Staormin commented Sep 10, 2024

Hi, first of all great project, the output looks very nice!

Since phpstan/phpstan-src#1414 phpstan is capable of handling relative paths in editorUrl which allows links to work when phpstan is executed inside a docker container.

But with this formatter enabled the relFile param is ignored so the link doesn't work.

This PR fix this issue.

An editorUrl example: 'phpstorm://open?file=/home/kevin/projects/test/%%relFile%%&line=%%line%%'

Regards.

Kevin

Copy link
Member

@ruudk ruudk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ruudk ruudk merged commit cee5a2b into TicketSwap:main Sep 10, 2024
1 check passed
@ruudk
Copy link
Member

ruudk commented Sep 10, 2024

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.

3 participants