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

Add void return type in DoctrineSchemaCompilerPass and MessageQueueCollector #1312

Closed
wants to merge 2 commits into from

Conversation

ruudk
Copy link
Contributor

@ruudk ruudk commented Aug 17, 2023

Fixes these deprecations on Symfony 6.3:

Method "Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface::process()" might add "void" as a native return type declaration in the future. Do the same in implementation "Enqueue\Doctrine\DoctrineSchemaCompilerPass" now to avoid errors or add an explicit @return annotation to suppress this message.
Method "Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface::collect()" might add "void" as a native return type declaration in the future. Do the same in implementation "Enqueue\Bundle\Profiler\MessageQueueCollector" now to avoid errors or add an explicit @return annotation to suppress this message.

@ruudk ruudk changed the title Add void return type in DoctrineSchemaCompilerPass Add void return type in DoctrineSchemaCompilerPass and MessageQueueCollector Aug 17, 2023
@ruudk
Copy link
Contributor Author

ruudk commented Aug 17, 2023

@makasim This one is ready for review.

@ruudk
Copy link
Contributor Author

ruudk commented Aug 17, 2023

@makasim I fixed the CS error. If you approve, it's going to be green. Except for 1 failing test that is out of my control. Could you please merge this? Thanks.

@makasim
Copy link
Member

makasim commented Aug 17, 2023

Unfortunately, I cannot merge the red build, If it makes to the main it will stay there for a long time, making the whole idea of testing and CI useless.

@ruudk
Copy link
Contributor Author

ruudk commented Aug 17, 2023

Main is already red: https://github.com/php-enqueue/enqueue-dev/commits/master

The error on this PR is the same, so that's what I mean.

Obviously this PR doesn't create new errors 😅

@ruudk
Copy link
Contributor Author

ruudk commented Aug 17, 2023

I give up. The errors in this PR are unrelated to my changes.

Fixes this deprecation on Symfony 6.3:

```
Method "Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface::process()" might add "void" as a native return type declaration in the future. Do the same in implementation "Enqueue\Doctrine\DoctrineSchemaCompilerPass" now to avoid errors or add an explicit @return annotation to suppress this message.
```
Fixes:
```
Method "Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface::collect()" might add "void" as a native return type declaration in the future. Do the same in implementation "Enqueue\Bundle\Profiler\MessageQueueCollector" now to avoid errors or add an explicit @return annotation to suppress this message.
```
@ruudk
Copy link
Contributor Author

ruudk commented Oct 22, 2023

This fails because this project uses PHPStan 0.12, which is outdated. It should be updated to PHPStan ^1.8.

@ruudk ruudk closed this Mar 26, 2024
@ruudk ruudk deleted the void branch March 26, 2024 17:54
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