Skip to content

Conversation

@nicolas-grekas
Copy link
Member

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

Fixes HHVM, as spotted in #21527

@nicolas-grekas nicolas-grekas added this to the 3.2 milestone Feb 4, 2017
@nicolas-grekas nicolas-grekas merged commit 44e5989 into symfony:3.2 Feb 5, 2017
nicolas-grekas added a commit that referenced this pull request Feb 5, 2017
…s-grekas)

This PR was merged into the 3.2 branch.

Discussion
----------

[Cache] Fix class exists checks in PhpArrayAdapter

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

Fixes HHVM, as spotted in #21527

Commits
-------

44e5989 [Cache] Fix class exists checks in PhpArrayAdapter
@nicolas-grekas nicolas-grekas deleted the cache-fix branch February 5, 2017 10:20
@fabpot fabpot mentioned this pull request Feb 6, 2017
public static function throwOnRequiredClass($class)
{
$e = new \ReflectionException(sprintf('Class %s does not exist', $class));
$e = new \ReflectionException("Class $class does not exist");
Copy link
Contributor

Choose a reason for hiding this comment

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

"Exception and error message strings must be concatenated using sprintf;" ;) http://symfony.com/doc/current/contributing/code/standards.html

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.

3 participants