Skip to content

Add ./phpstan alias to ./phpstan.phar#4390

Merged
ondrejmirtes merged 4 commits intophpstan:masterfrom
mvorisek:phpstan_entry
Jan 19, 2021
Merged

Add ./phpstan alias to ./phpstan.phar#4390
ondrejmirtes merged 4 commits intophpstan:masterfrom
mvorisek:phpstan_entry

Conversation

@mvorisek
Copy link
Copy Markdown
Contributor

2/2 PR for #4389

@ondrejmirtes
Copy link
Copy Markdown
Member

I don't understand this PR. If it's a symlink then it won't work. It used to be a symlink a long time ago but we abandoned that approach.

@mvorisek
Copy link
Copy Markdown
Contributor Author

GH displays it weirdly, check the 2nd commit diff

@ondrejmirtes
Copy link
Copy Markdown
Member

Alright, looks promising, but check out the build failures here.

@ondrejmirtes
Copy link
Copy Markdown
Member

@mvorisek I tried removing that patcher, please rebase this PR so we can see if the build passes.

@ondrejmirtes
Copy link
Copy Markdown
Member

It's obvious why it doesn't work - when running PHPStan throug the phpstan file, the phpstan.phar PHAR alias is not set.

@mvorisek
Copy link
Copy Markdown
Contributor Author

It's obvious, yes, but how to fix it?

@ondrejmirtes
Copy link
Copy Markdown
Member

If I knew how, I'd already done it.

@ondrejmirtes
Copy link
Copy Markdown
Member

Wow, looks like you really figured it out!

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.

2 participants