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

[Resource] Use typehints introduced by PHP7+ #8439

Merged
merged 3 commits into from Aug 24, 2017

Conversation

pamil
Copy link
Contributor

@pamil pamil commented Aug 23, 2017

Q A
Bug fix? no
New feature? no
BC breaks? yes
Related tickets part of #8425
License MIT

@pamil pamil added BC Break PRs introducing BC breaks (do not even try to merge). Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.). PHP 7.1 labels Aug 23, 2017
@pamil pamil added this to the v1.0.0 milestone Aug 23, 2017
@pamil pamil self-assigned this Aug 23, 2017
@pamil pamil requested a review from Zales0123 August 23, 2017 10:31
@pamil pamil force-pushed the scalar-types/resource branch 3 times, most recently from 4eb8b41 to 1e4d7b6 Compare August 23, 2017 13:33
Copy link
Member

@Zales0123 Zales0123 left a comment

Choose a reason for hiding this comment

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

Such a big diff should be prohibited by law 😄 🚓

@@ -115,7 +115,7 @@ protected function getModelNamespace()
*
* @throws UnknownDriverException
*/
protected function getMappingCompilerPassInfo($driverType)
protected function getMappingCompilerPassInfo($driverType): array
Copy link
Member

Choose a reason for hiding this comment

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

string $driverType

@@ -32,11 +32,20 @@ public function createRouteCollection();
* @param array $requirements An array of requirements for parameters (regexes)
* @param array $options An array of options
* @param string $host The host pattern to match
* @param string|array $schemes A required URI scheme or an array of restricted schemes
* @param string|array $methods A required HTTP method or an array of restricted methods
* @param array $schemes A required URI scheme or an array of restricted schemes
Copy link
Member

Choose a reason for hiding this comment

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

I would change the comment to A required array of restricted schemes or remove it at all.

* @param string|array $schemes A required URI scheme or an array of restricted schemes
* @param string|array $methods A required HTTP method or an array of restricted methods
* @param array $schemes A required URI scheme or an array of restricted schemes
* @param array $methods A required HTTP method or an array of restricted methods
Copy link
Member

Choose a reason for hiding this comment

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

Similarly here.

@@ -19,16 +19,18 @@
interface ToggleableInterface
{
/**
* Missing scalar typehint because it conflicts with AdvancedUserInterface.
Copy link
Member

Choose a reason for hiding this comment

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

😢

@Zales0123 Zales0123 merged commit 3db6cc2 into Sylius:master Aug 24, 2017
@pamil pamil deleted the scalar-types/resource branch August 24, 2017 09:27
@Zales0123
Copy link
Member

Great work Kamil! 🌕

@bendavies bendavies mentioned this pull request Aug 30, 2017
pamil pushed a commit to pamil/Sylius that referenced this pull request May 7, 2019
[Resource] Use typehints introduced by PHP7+
pamil pushed a commit to pamil/Sylius that referenced this pull request May 7, 2019
[Resource] Use typehints introduced by PHP7+
pamil pushed a commit to pamil/Sylius that referenced this pull request May 7, 2019
[Resource] Use typehints introduced by PHP7+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BC Break PRs introducing BC breaks (do not even try to merge). Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants