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

compatibility with Symfony 4 #576

Merged
merged 1 commit into from
Jun 26, 2017
Merged

Conversation

xabbuh
Copy link
Contributor

@xabbuh xabbuh commented May 21, 2017

In FOSRestBundle, we need this to test for compatibility with Symfony 4 (see FriendsOfSymfony/FOSRestBundle#1708).

@xabbuh xabbuh force-pushed the patch-1 branch 3 times, most recently from 2d3de13 to f04085d Compare May 21, 2017 15:12
},
"require-dev": {
"phpunit/phpunit": "^4.2|^5.0",
"symfony/expression-language": "~2.6|~3.0",
"phpunit/phpunit": "^4.8.35|^5.4.3|^6.0",
Copy link
Collaborator

Choose a reason for hiding this comment

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

just out of curiosity, is there any special reason to require explicitly 4.8.35 or 5.4.3 instead of 4.8, 5.4 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need ^6.0 to be able to install the Yaml component in version 4 (older PHPUnit versions depended on 2.x/3.x while PHPUnit 6 completely dropped the requirement of the Yaml component). However, PHPUnit 6 does not have the old \PHPUnit_Framework_TestCase class so that we need to change the base class of all test cases to use the TestCase class from the PHPUnit\Framework namespace. This in turn requires us to bump the dependency for PHPUnit 4 and 5 to releases that included class aliases for the namespaced TestCase class as a FC layer.

Copy link
Collaborator

@goetas goetas May 22, 2017

Choose a reason for hiding this comment

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

:-/ I was (and still I am) OK with the changes for phpunit 6.0 ( and for the changes required for it), my question was about the changes regarding 4.8 and 5.4

😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just wanted to explain the whole reasoning here in case someone find this change in the future and needs some explanation. :)

Copy link
Owner

Choose a reason for hiding this comment

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

@goetas I think the changes for 4.8 and 5.4 are needed because only starting with those, the class aliases have been set-up.

@goetas goetas self-requested a review May 22, 2017 09:19
@goetas
Copy link
Collaborator

goetas commented May 22, 2017

nice :) has it been already decided the release date for sf 4?

@xabbuh
Copy link
Contributor Author

xabbuh commented May 22, 2017

has it been already decided the release date for sf 4?

Symfony 4 will be released by the end of November/the beginning of December (see http://symfony.com/roadmap?version=4.0#checker).

Copy link

@GuilhemN GuilhemN left a comment

Choose a reason for hiding this comment

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

It would be nice to merge this to be able to update other bundles depending on this bundle.

@schmittjoh schmittjoh merged commit f796508 into schmittjoh:master Jun 26, 2017
@xabbuh xabbuh deleted the patch-1 branch June 26, 2017 09:58
@goetas
Copy link
Collaborator

goetas commented Jun 26, 2017 via email

@goetas
Copy link
Collaborator

goetas commented Jun 26, 2017

Having stability "dev" will constantly bring unstable dependencies, and false failures will be more frequent. Why not put @dev on the dependent libs?

@xabbuh
Copy link
Contributor Author

xabbuh commented Jun 26, 2017

We should probably use the --prefer-stable option by default.

@goetas
Copy link
Collaborator

goetas commented Jun 26, 2017 via email

@xabbuh
Copy link
Contributor Author

xabbuh commented Jun 26, 2017

see #588

@sgrodzicki
Copy link

Shouldn't this also require symfony/translation for Symfony Flex usage?

@goetas
Copy link
Collaborator

goetas commented Sep 23, 2017

@sgrodzicki why?

@sgrodzicki
Copy link

@goetas since the Translation component is no longer a dependency of the FrameworkBundle:

symfony/framework-bundle@a1382b4#diff-b5d0ee8c97c7abd7e3fa29b9a27d1780

Way to reproduce the issue:

composer create-project symfony/skeleton pr576 \
    && cd pr576 \
    && composer req cli jms/serializer-bundle

@goetas
Copy link
Collaborator

goetas commented Sep 28, 2017

@sgrodzicki it is on the way, see schmittjoh/serializer#824

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants