Failed Conditions
Pull Request — develop (#6599)
by Michael
131:05 queued 63:47
created
lib/Doctrine/ORM/QueryBuilder.php 1 patch
Doc Comments   +5 added lines, -7 removed lines patch added patch discarded remove patch
@@ -609,7 +609,7 @@  discard block
 block discarded – undo
609 609
     /**
610 610
      * Gets a (previously set) query parameter of the query being constructed.
611 611
      *
612
-     * @param mixed $key The key (index or name) of the bound parameter.
612
+     * @param string $key The key (index or name) of the bound parameter.
613 613
      *
614 614
      * @return Query\Parameter|null The value of the bound parameter.
615 615
      */
@@ -1097,7 +1097,6 @@  discard block
 block discarded – undo
1097 1097
      *         ->andWhere('u.is_active = 1');
1098 1098
      * </code>
1099 1099
      *
1100
-     * @param mixed $where The query restrictions.
1101 1100
      *
1102 1101
      * @return self
1103 1102
      *
@@ -1130,7 +1129,6 @@  discard block
 block discarded – undo
1130 1129
      *         ->orWhere('u.id = 2');
1131 1130
      * </code>
1132 1131
      *
1133
-     * @param mixed $where The WHERE statement.
1134 1132
      *
1135 1133
      * @return self
1136 1134
      *
@@ -1195,7 +1193,7 @@  discard block
 block discarded – undo
1195 1193
      * Specifies a restriction over the groups of the query.
1196 1194
      * Replaces any previous having restrictions, if any.
1197 1195
      *
1198
-     * @param mixed $having The restriction over the groups.
1196
+     * @param string $having The restriction over the groups.
1199 1197
      *
1200 1198
      * @return self
1201 1199
      */
@@ -1212,7 +1210,7 @@  discard block
 block discarded – undo
1212 1210
      * Adds a restriction over the groups of the query, forming a logical
1213 1211
      * conjunction with any existing having restrictions.
1214 1212
      *
1215
-     * @param mixed $having The restriction to append.
1213
+     * @param string $having The restriction to append.
1216 1214
      *
1217 1215
      * @return self
1218 1216
      */
@@ -1235,7 +1233,7 @@  discard block
 block discarded – undo
1235 1233
      * Adds a restriction over the groups of the query, forming a logical
1236 1234
      * disjunction with any existing having restrictions.
1237 1235
      *
1238
-     * @param mixed $having The restriction to add.
1236
+     * @param string $having The restriction to add.
1239 1237
      *
1240 1238
      * @return self
1241 1239
      */
@@ -1454,7 +1452,7 @@  discard block
 block discarded – undo
1454 1452
     /**
1455 1453
      * Resets DQL parts.
1456 1454
      *
1457
-     * @param array|null $parts
1455
+     * @param string[] $parts
1458 1456
      *
1459 1457
      * @return self
1460 1458
      */
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SQLFilterTest.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -180,6 +180,9 @@  discard block
 block discarded – undo
180 180
         self::assertFalse($em->getFilters()->isEnabled("foo_filter"));
181 181
     }
182 182
 
183
+    /**
184
+     * @param EntityManagerInterface $em
185
+     */
183 186
     protected function configureFilters($em)
184 187
     {
185 188
         // Add filters to the configuration of the EM
@@ -894,6 +897,9 @@  discard block
 block discarded – undo
894 897
         self::assertEquals(2, count($manager->managedContracts->slice(0, 10)));
895 898
     }
896 899
 
900
+    /**
901
+     * @param string $name
902
+     */
897 903
     private function usePersonNameFilter($name)
898 904
     {
899 905
         // Enable the filter
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php 1 patch
Doc Comments   -3 removed lines patch added patch discarded remove patch
@@ -56,7 +56,6 @@  discard block
 block discarded – undo
56 56
     }
57 57
 
58 58
     /**
59
-     * @param \Doctrine\ORM\EntityManagerInterface $entityClassName
60 59
      * @return \Doctrine\ORM\Mapping\ClassMetadataFactory
61 60
      */
62 61
     protected function createClassMetadataFactory(EntityManagerInterface $em = null)
@@ -73,7 +72,6 @@  discard block
 block discarded – undo
73 72
     }
74 73
 
75 74
     /**
76
-     * @param ClassMetadata $class
77 75
      */
78 76
     public function testEntityTableNameAndInheritance()
79 77
     {
@@ -87,7 +85,6 @@  discard block
 block discarded – undo
87 85
 
88 86
     /**
89 87
      *
90
-     * @param ClassMetadata $class
91 88
      */
92 89
     public function testEntityIndexes()
93 90
     {
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Sequencing/UuidGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\ORM\Sequencing;
6 6
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     public function generate(EntityManagerInterface $em, $entity)
21 21
     {
22 22
         $conn = $em->getConnection();
23
-        $sql = 'SELECT ' . $conn->getDatabasePlatform()->getGuidExpression();
23
+        $sql = 'SELECT '.$conn->getDatabasePlatform()->getGuidExpression();
24 24
 
25 25
         return $conn->query($sql)->fetchColumn(0);
26 26
     }
Please login to merge, or discard this patch.