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

Apply cs #532

Merged
merged 2 commits into from
Mar 13, 2020
Merged

Apply cs #532

merged 2 commits into from
Mar 13, 2020

Conversation

franmomu
Copy link
Contributor

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License Apache2

Description

This are the changes of applying Doctrine coding standards to the whole code. I tried to manually check the code looking for some calls (that could fail with strict_types), but maybe I'm missing some.

private $locales;

public function __construct(ConfigFactory $configFactory, Updater $updater, array $locales)
{
$this->configFactory = $configFactory;
$this->updater = $updater;
$this->locales = $locales;
$this->updater = $updater;
Copy link
Collaborator

Choose a reason for hiding this comment

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

i remember having disabled this in jms serializer...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, I missed some excluded rules

@goetas goetas merged commit b1794e1 into schmittjoh:master Mar 13, 2020
@goetas
Copy link
Collaborator

goetas commented Mar 13, 2020

thanks

@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);
Copy link
Contributor

@ViniTou ViniTou Mar 17, 2020

Choose a reason for hiding this comment

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

I didn't check more places, but that one broke extract command as simplexml_load_file expects path to file and resource is given. It worked before because of the __toString() method but this is no case any longer.
@franmomu
@goetas

I created PR here: #533

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'll take a look

@franmomu franmomu deleted the apply_cs branch March 17, 2020 17:28
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.

3 participants