diff --git a/composer.json b/composer.json
index 5f40e2a49d..100f1760f4 100644
--- a/composer.json
+++ b/composer.json
@@ -27,7 +27,7 @@
"symfony/console": "~3.0|~4.0"
},
"require-dev": {
- "doctrine/coding-standard": "^1.0",
+ "doctrine/coding-standard": "^4.0",
"phpunit/phpunit": "^6.5",
"squizlabs/php_codesniffer": "^3.2",
"symfony/yaml": "~3.4|~4.0"
diff --git a/phpcs.xml.dist b/phpcs.xml.dist
index 9ffa05d316..1fc72340ee 100644
--- a/phpcs.xml.dist
+++ b/phpcs.xml.dist
@@ -4,10 +4,10 @@
-
+
-
-
+
+
lib
tests
@@ -15,10 +15,108 @@
*/tests/Doctrine/Tests/Proxies/__CG__/*
-
+
+
+
+
+
+
+
+
*/tests/*
-
+
+ */tests/*
+
+
+
+ lib/Doctrine/ORM/Events.php
+ lib/Doctrine/ORM/Tools/ToolEvents.php
+
+
+
+ lib/Doctrine/ORM/Annotation/*
+
+
+
+ lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php
+
+
+
+ lib/Doctrine/ORM/Sequencing/TableGenerator.php
+
+
+
+ lib/Doctrine/ORM/Query/Parser.php
+
+
+
+ lib/Doctrine/ORM/Mapping/*
+
+
+
+ lib/Doctrine/ORM/Mapping/*
+
+
+
+ lib/Doctrine/ORM/Annotation/*
+
+
+
+ lib/Doctrine/ORM/Cache/DefaultQueryCache.php
+
+
+
+ lib/Doctrine/ORM/EntityManagerInterface.php
+
+
+
+ */tests/*
+
+
+
+ */tests/*
+
+
+
+ */tests/*
+
+
+
+ */tests/*
+
+
+
+ */tests/*
+
+
+
+ */tests/*
+
+
+
+
+ tests/Doctrine/Tests/Models/Global/GlobalNamespaceModel.php
+ tests/Doctrine/Tests/Models/DDC3231/DDC3231User1NoNamespace.php
+ tests/Doctrine/Tests/Models/DDC3231/DDC3231User2NoNamespace.php
+
+
+
+
+ tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2084Test.php
+
+
+
+
+ tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2084Test.php
+
+
+
+
+ tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1301Test.php
+ tests/Doctrine/Tests/ORM/Functional/ExtraLazyCollectionTest.php
+
+