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

Fail with no error message #120

Open
sergiolatostadora opened this issue Dec 20, 2018 · 4 comments
Open

Fail with no error message #120

sergiolatostadora opened this issue Dec 20, 2018 · 4 comments

Comments

@sergiolatostadora
Copy link

Hi,

Since last days sometimes when PHP-CS-FIXER fails wee only see Fail message like in photo attached.
No specific message

screenshot 2018-12-20 at 16 14 48

Someone with the same problem? version 5.8
configuration
php-cs-fixer:
enabled: true
levels:
psr0: false
psr1: true
psr2: true
symfony: true
options: null

@bruli
Copy link
Owner

bruli commented Dec 20, 2018

Hi.
I will check it.
From last PR is not working fine.

@sergiolatostadora
Copy link
Author

Thanks bruli, it can be php cs fixer last version?

@bruli
Copy link
Owner

bruli commented Dec 20, 2018

I'm not sure, I think no.

@sergiolatostadora
Copy link
Author

sergiolatostadora commented Jan 3, 2019

If I change PhpCsFixerToolProcessor

private function setError(Process $process)
{
if (false === $process->isSuccessful()) {
return $process->getErrorOutput();
}
}

to

private function setError(Process $process)
{
if (false === $process->isSuccessful()) {
return $process->getOutput();
}
}

I get a more verbose message with error file, not error message or line. I think this is because php-cs-fixer changed his output.

screenshot 2019-01-03 at 11 47 21

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

No branches or pull requests

2 participants