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

Appearance settings

[PhpUnitBridge] use call_user_func() for PHP 5.3 compatibility #19126

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 21, 2016

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Jun 21, 2016

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

Not all callables can be called directly on PHP 5.3 (for example, array('className', 'methodName') does not work).

Not all callables can be called directly on PHP 5.3 (for example,
`array('className', 'methodName')` does not work).
@fabpot
Copy link
Member

fabpot commented Jun 21, 2016

But Symfony 3.x does not support PHP 5.3 anymore.

@xabbuh
Copy link
Member Author

xabbuh commented Jun 21, 2016

No, but we explicitly support PHP 5.3 for the PHPUnit bridge to use the latest version in tests for older Symfony versions for example (see https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/PhpUnit/composer.json#L19-L21).

@xabbuh xabbuh changed the title [PhpUnitBridge] use call_user_func() for PHP 5.3 compatibility [PHPUnitBridge] use call_user_func() for PHP 5.3 compatibility Jun 21, 2016
@xabbuh xabbuh changed the title [PHPUnitBridge] use call_user_func() for PHP 5.3 compatibility [PhpUnitBridge] use call_user_func() for PHP 5.3 compatibility Jun 21, 2016
@fabpot
Copy link
Member

fabpot commented Jun 21, 2016

Thank you @xabbuh.

@fabpot fabpot merged commit 8549e05 into symfony:master Jun 21, 2016
fabpot added a commit that referenced this pull request Jun 21, 2016
…lity (xabbuh)

This PR was merged into the 3.2-dev branch.

Discussion
----------

[PhpUnitBridge] use call_user_func() for PHP 5.3 compatibility

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

Not all callables can be called directly on PHP 5.3 (for example, `array('className', 'methodName')` does not work).

Commits
-------

8549e05 use call_user_func() for PHP 5.3 compatibility
@nicolas-grekas
Copy link
Member

nicolas-grekas commented Jun 21, 2016 via email

@xabbuh
Copy link
Member Author

xabbuh commented Jun 21, 2016

@nicolas-grekas Yeah, but that doesn't mean that someone wants to use this in their own project outside Symfony. Why should we not make their lives easier?

@xabbuh xabbuh deleted the error-assert-php-5.3 branch June 21, 2016 07:37
@fabpot fabpot mentioned this pull request Oct 27, 2016
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.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.