Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[FrameworkBundle] Removed eval() from KernelShutdownOnTearDownTrait#30364

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:4.2fromskalpa:remove-eval-on-sf4
Feb 24, 2019

Conversation

@skalpa
Copy link
Contributor

QA
Branch?4.2
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
LicenseMIT

Apart from triggering the#30362 bug, theeval() block from#30124 also broke my workflow: static code analyzers don't like this, and the trait even crashes PHPStan.

It may also bring up other compatibility issues to other people (ie: I know companies that completely disableeval() on their servers).

As it was only required to keep the trait compatible with PHP 5.x, it is unnecessary on 4.x that requires PHP 7.1+, and this PR removes it on the 4.2 branch.

@skalpa
Copy link
ContributorAuthor

The fabpot.io failure seems to be a false positive (the script reads the typehint from the first definition and complains about the docblock of the second definition).

@nicolas-grekasnicolas-grekas added this to the4.2 milestoneFeb 24, 2019
@nicolas-grekas
Copy link
Member

You should report the crash to phpstan then.

@nicolas-grekas
Copy link
Member

Thank you@skalpa.

@nicolas-grekasnicolas-grekas merged commit324b70a intosymfony:4.2Feb 24, 2019
nicolas-grekas added a commit that referenced this pull requestFeb 24, 2019
…arDownTrait (skalpa)This PR was merged into the 4.2 branch.Discussion----------[FrameworkBundle] Removed eval() from KernelShutdownOnTearDownTrait| Q             | A| ------------- | ---| Branch?       | 4.2| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| License       | MITApart from triggering the#30362 bug, the `eval()` block from#30124 also broke my workflow: static code analyzers don't like this, and the trait even crashes PHPStan.It may also bring up other compatibility issues to other people (ie: I know companies that completely disable `eval()` on their servers).As it was only required to keep the trait compatible with PHP 5.x, it is unnecessary on 4.x that requires PHP 7.1+, and this PR removes it on the 4.2 branch.Commits-------324b70a Removed eval() from KernelShutdownOnTearDownTrait
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

+1 more reviewer

@ogizanagiogizanagiogizanagi approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.2

Development

Successfully merging this pull request may close these issues.

4 participants

@skalpa@nicolas-grekas@ogizanagi@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp