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

CS 4.0, PHPStan 0.9, PHPUnit 7, static asserts, composer.lock, merged stages #43

Conversation

Majkl578
Copy link
Contributor

@Majkl578 Majkl578 commented Mar 5, 2018

Class naming rules ignored as no changes to the class names in stable are possible.

@Majkl578 Majkl578 force-pushed the cs-4.0&phpstan-0.9&phpunit7&version-lockfile branch from 1fda269 to 4f8a477 Compare March 5, 2018 03:20
@Majkl578 Majkl578 force-pushed the cs-4.0&phpstan-0.9&phpunit7&version-lockfile branch from 4f8a477 to a190f41 Compare March 5, 2018 03:21
@Majkl578 Majkl578 force-pushed the cs-4.0&phpstan-0.9&phpunit7&version-lockfile branch from a190f41 to 62dc422 Compare March 5, 2018 03:23
@Majkl578 Majkl578 changed the title CS 4.0, PHPStan 0.9, PHPUnit 7, version lockfile CS 4.0, PHPStan 0.9, PHPUnit 7, static asserts, version lockfile Mar 5, 2018
@Majkl578 Majkl578 changed the title CS 4.0, PHPStan 0.9, PHPUnit 7, static asserts, version lockfile CS 4.0, PHPStan 0.9, PHPUnit 7, static asserts, composer.lock, merged stages Mar 5, 2018
@Majkl578 Majkl578 force-pushed the cs-4.0&phpstan-0.9&phpunit7&version-lockfile branch 2 times, most recently from 34d0205 to b288091 Compare March 5, 2018 03:55
@Majkl578
Copy link
Contributor Author

Majkl578 commented Mar 5, 2018

Hmm I think I totally confused Composer with this crazy branch name, had to do fixups in different normal branch & do reset... Really strange.

@@ -1,3 +1,6 @@
parameters:
ignoreErrors:
- '#::__construct\(\) does not call parent constructor from#'

# dynamic properties consufe static analysis

Choose a reason for hiding this comment

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

-consufe
+confuse

$this->instantiator->instantiate('DoctrineTest\\InstantiatorTestAsset\\SimpleSerializableAsset');
$this->instantiator->instantiate('DoctrineTest\\InstantiatorTestAsset\\SerializableArrayObjectAsset');
$this->instantiator->instantiate('DoctrineTest\\InstantiatorTestAsset\\UnCloneableAsset');
$this->instantiator->instantiate(self::class);

Choose a reason for hiding this comment

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

Do we have a rule for this changes?

-__CLASS__
+self::class

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No.

Choose a reason for hiding this comment

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

So, why? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because other places already use ::class, and just because it's better. :D

Copy link
Member

Choose a reason for hiding this comment

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

Tbh, I'd fancy such a rule - it would remove the ambiguity once and for all 👍

@Majkl578 Majkl578 force-pushed the cs-4.0&phpstan-0.9&phpunit7&version-lockfile branch from b288091 to 7831db6 Compare March 5, 2018 04:39
@Ocramius Ocramius self-assigned this Mar 5, 2018
@Ocramius Ocramius added this to the 1.2.0 milestone Mar 5, 2018
Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@Ocramius Ocramius merged commit 870a62d into doctrine:master Mar 5, 2018
@Majkl578 Majkl578 deleted the cs-4.0&phpstan-0.9&phpunit7&version-lockfile branch March 5, 2018 18:38
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.

3 participants