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

Missing dependency for Assert in 3.0.0 #50

Closed
ghost opened this issue Feb 4, 2020 · 7 comments
Closed

Missing dependency for Assert in 3.0.0 #50

ghost opened this issue Feb 4, 2020 · 7 comments
Assignees
Labels

Comments

@ghost
Copy link

ghost commented Feb 4, 2020

Seems like it was required indirectly before but isn't anymore

@Spomky Spomky self-assigned this Feb 4, 2020
@Spomky Spomky added the bug label Feb 4, 2020
@Spomky
Copy link
Member

Spomky commented Feb 4, 2020

Thanks for this issue.
A patch will be submitted soon on both v3.0 and v2.2 branches

@tereschenkov
Copy link
Contributor

I've created a PR #51 to fix this issue. Basically I removed 2 lines of code with Assertion class since, I believe, it was introduced accidentally

@tereschenkov
Copy link
Contributor

Looks like this bug can be closed, right?

@Djamy
Copy link

Djamy commented May 20, 2020

Hi @Spomky !

It seems that the tagged version v3.0.0 is still with the issue.
I think you need to upgrade the version to a newer tag to have @tereschenkov 's fix.

Spomky added a commit that referenced this issue May 30, 2020
@Spomky
Copy link
Member

Spomky commented May 30, 2020

Hi @Djamy,

Thank you for your patience. I’ve just push a fix for that issue.
This should work fine now. Waiting for CI to finish.

@Djamy
Copy link

Djamy commented Jun 1, 2020

Thank you @Spomky it seems to work so far!

I'm just curious here, could you tell me why you choose to import native PHP function here?
Is there a specific reason or something?

@Spomky
Copy link
Member

Spomky commented Jun 1, 2020

Thank you @Spomky it seems to work so far!

Great. I close the issue now. Feel free to open it if something went wrong with the last modifications.

I'm just curious here, could you tell me why you choose to import native PHP function here?
Is there a specific reason or something?

\is_string is a micro-optimization. Php-CS-Fixer is able to import all there function and from my POV it looks easier to read.
In addition, when contributors modify the files, they don't have to brother with this optimization.

@Spomky Spomky closed this as completed Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants