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

[DI] Fix CheckTypeDeclarationPass #36108

Merged
merged 1 commit into from Mar 18, 2020
Merged

[DI] Fix CheckTypeDeclarationPass #36108

merged 1 commit into from Mar 18, 2020

Conversation

guillbdx
Copy link

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #35863 and #35972
License MIT
Doc PR

Bug 1: The lint container threw an error if a class buit with a factory was declared as callable while this factory method returne a callabe (#35863)

Bug 2: Sodium Exception was not caught in the CheckTypeDeclarationsPass. We have extended the exception caught to \Exception, instead of EnvNotFoundException and RuntimeException only.

@guillbdx guillbdx changed the title Di fix check type declaration pass [DI] Fix CheckTypeeclarationPass Mar 17, 2020
@guillbdx guillbdx changed the title [DI] Fix CheckTypeeclarationPass [DI] Fix CheckTypeDeclarationPass Mar 17, 2020
@nicolas-grekas nicolas-grekas added this to the 4.4 milestone Mar 17, 2020
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.
The 'iterable' case looks similar, we should add 'iterable' === $class there also

@fabpot
Copy link
Member

fabpot commented Mar 18, 2020

Thank you @guillbdx.

@fabpot fabpot merged commit 7baec32 into symfony:4.4 Mar 18, 2020
This was referenced Mar 27, 2020
@Antek013
Copy link

I had the same problem with 4.4.
I created a local repository with secrets then i push on the server and when i done a cache:clear i get the same error.

!! keypair size should be SODIUM_CRYPTO_BOX_KEYPAIRBYTES bytes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants