-
-
Notifications
You must be signed in to change notification settings - Fork 108
Fix Travis CI tests #142
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
Fix Travis CI tests #142
Conversation
396e74a
to
e998882
Compare
3a1c37c
to
43e9bc3
Compare
Thank you very much for handling this! |
5d45f8f
to
cc08881
Compare
3e9e244
to
9054e0f
Compare
@dunglas no worries! 🙂 I just seem to be stuck on 1 more weird error:
That's what |
0dd3301
to
83dd8f3
Compare
Tests are green now, but there's still an error message. |
83dd8f3
to
356725e
Compare
@baspeeters regarding the PHPStan error, it's a known issue with the Symfony Config component, you can just add it to the ignore list. |
a767667
to
477571d
Compare
- Update phpstan/phpstan from ^0.8 to ^0.10 - Correct a reference to phpunit.phar - Change expected type `self` to `Person` in testFluentMutators - Ignore phpstan error (info: keboola/php-component#8)
477571d
to
b0986c3
Compare
Maybe can we just drop PHP Scoper in the meantime? |
Merged then, thank you very much @baspeeters |
Background
Build was failing on Travis CI. Every tiny fix yielded the next error.
Problems
Problem 1
Fixed this by changing version
^0.8
forphpstan/phpstan
to a higher stable one (^0.10
).Problem 2
Fixed this by correcting the reference to PHPUnit (earlier in
.travis.yml
it explicitly installs version6.5
).Problem 3
At first I thought this was an issue with newlines, but it appeared that this test expected the reference to a friend to be of type
self
, but this is referenced as typePerson
. PHPUnit never got to this point because of the above problems. Updated the reference to Person.Problem 4
Some phpstan analysis errors:
Now the cursor gets out of the cycle when
$graph
is empty so that it won't reach the code trying to use this var which is declared in a previous foreach.ArrayNode definitely has the method childred(), I've even checked it with a var dump. This took me ages. Eventually found this issue where the maintainer commented also. It claims the error message is wrong and you should ignore this specific error...
Problem 5
Installing packages with the lowest stable versions caused package
friendsofphp/php-cs-fixer
to format self-referencing entities to be formatted adself
instead of the entity name. Upgraded the version of this package by0.1
.Problem 6
#124