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

Allow Symfony 5 #1564

Merged
merged 1 commit into from
Dec 4, 2019
Merged

Allow Symfony 5 #1564

merged 1 commit into from
Dec 4, 2019

Conversation

maxhelias
Copy link
Contributor

  • I remove support for PHP 7.1 as she is no longer maintained and she don't support iterable type for compatibility with Symfony 5.

  • Add PHP 7.3 and 7.4 tests

  • Try different versions of Symfony

TODO :

  • Fix Travis 😄

@maxhelias
Copy link
Contributor Author

@GuilhemN I think we can merge this PR even if the Sf5 test fails because of FOSRestBundle. It should automatically go green at the next release of FOSRest

@@ -37,7 +37,7 @@ public function getExtendedType()
return self::getExtendedTypes()[0];
}

public static function getExtendedTypes()
public static function getExtendedTypes(): iterable
{
return [FormType::class];
Copy link
Contributor

Choose a reason for hiding this comment

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

I've not tried this (was just looking at symfony 5 status), but should the return statement not be:

return array(FormType::class);

the addition of array() is in the upgrade doc's example?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I do not understand what you mean :/

Copy link
Contributor

Choose a reason for hiding this comment

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

I happened to read https://github.com/symfony/symfony/blame/master/UPGRADE-5.0.md#L153 about 30 seconds before reading your PR. The symfony guide 'after' example added array()

Choose a reason for hiding this comment

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

@mantis array() and [] are the same thing. It's just two different ways of writing arrays in PHP. [] being more modern.

Copy link
Contributor

Choose a reason for hiding this comment

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

argh, sorry - I missed the []

@GuilhemN GuilhemN merged commit f47454b into nelmio:master Dec 4, 2019
@GuilhemN
Copy link
Collaborator

GuilhemN commented Dec 4, 2019

Thank you @maxhelias ! :)

@maxhelias maxhelias deleted the sf5 branch February 22, 2021 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants