Skip to content

Conversation

@bytestream
Copy link
Member

@bytestream bytestream commented Feb 11, 2021

We're receiving inconsistent CI results without actually changing anything, evident in:

This is due to the use of --prefer-stable when running composer update to install dependencies for each PHP version.

In the case of the referenced PRs symfony/dependency-injection changed a docblock from mixed to string|[..] - see:

This then causes PHPStan to complain that the return type is no longer string it can be anything.

@bytestream bytestream changed the title ci: use composer install instead of update chore: lock phpstan version Feb 11, 2021
@bytestream bytestream changed the title chore: lock phpstan version chore: use prefer-lowest instead of prefer-stable Feb 11, 2021
@bytestream
Copy link
Member Author

Any thoughts on this @Gaitholabi ? I think we just have to suck it up and fix PHPStan issues as they arise. I'm not sure that this PR is the way forward.

@Gaitholabi
Copy link
Collaborator

Any thoughts on this @Gaitholabi ? I think we just have to suck it up and fix PHPStan issues as they arise. I'm not sure that this PR is the way forward.

Yeah I think so too, it's better to have things compatible and fix them rather than ignoring them and using old dependencies.

@bytestream
Copy link
Member Author

OK I will close this.

@bytestream bytestream closed this Feb 12, 2021
@bytestream bytestream deleted the composer-install branch February 17, 2021 12:43
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.

3 participants