Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[PropertyAccess] Fix Usage with anonymous classes #23156

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

Merged
merged 1 commit into from
Jun 14, 2017

Conversation

mablae
Copy link
Contributor

@mablae mablae commented Jun 13, 2017

Q A
Branch? 3.2
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #23136
License MIT

Replace forbidden characters in the the class names of Anonymous Classes in form of
"class@anonymous /symfony/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php0x7f3f5f267ad5"

Wrapped in eval to avoid PHP parsing errors < 7 and using rawurlenceode for perf reasons

Thanks @nicolas-grekas for the help and patience. Let me know if anything is missing.

@mablae mablae changed the title Fix Usage with anonymous classes [PropertyAccess] Fix Usage with anonymous classes Jun 13, 2017
@mablae mablae force-pushed the fix-property-access-anonymous-class branch 2 times, most recently from c071743 to 5a5a08b Compare June 13, 2017 08:28

public function testAnonymousClassRead()
{
if (PHP_MAJOR_VERSION < 7) {
Copy link
Member

Choose a reason for hiding this comment

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

use @requires php 7 annotation instead (same below)

}

/**
* @param $value
Copy link
Member

Choose a reason for hiding this comment

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

should be removed

Replace forbidden characters in the the class names of Anonymous Classes in form of
"class@anonymous /symfony/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php0x7f3f5f267ad5"

Wrapped in eval to avoid PHP parsing errors < 7
@mablae mablae force-pushed the fix-property-access-anonymous-class branch from 5a5a08b to 3f7fd43 Compare June 13, 2017 08:48
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.

👍

@nicolas-grekas nicolas-grekas added this to the 3.2 milestone Jun 14, 2017
@fabpot
Copy link
Member

fabpot commented Jun 14, 2017

Thank you @mablae.

@fabpot fabpot merged commit 3f7fd43 into symfony:3.2 Jun 14, 2017
fabpot added a commit that referenced this pull request Jun 14, 2017
This PR was merged into the 3.2 branch.

Discussion
----------

[PropertyAccess] Fix Usage with anonymous classes

| Q             | A
| ------------- | ---
| Branch?       | 3.2
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #23136
| License       | MIT

Replace forbidden characters in the the class names of Anonymous Classes in form of
"class@anonymous /symfony/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php0x7f3f5f267ad5"

Wrapped in eval to avoid PHP parsing errors < 7 and using `rawurlenceode` for perf reasons

Thanks @nicolas-grekas for the help and patience. Let me know if anything is missing.

Commits
-------

3f7fd43 Fix Usage with anonymous classes
@mablae mablae deleted the fix-property-access-anonymous-class branch June 15, 2017 01:08
This was referenced Jul 4, 2017
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.

5 participants