@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * Create a new connection factory instance. |
26 | 26 | * |
27 | 27 | * @param \Illuminate\Contracts\Container\Container $container |
28 | - * @return void |
|
28 | + * @return ConnectionFactory |
|
29 | 29 | */ |
30 | 30 | public function __construct(Container $container) |
31 | 31 | { |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | * Create a new connection instance. |
256 | 256 | * |
257 | 257 | * @param string $driver |
258 | - * @param \PDO|\Closure $connection |
|
258 | + * @param \Closure $connection |
|
259 | 259 | * @param string $database |
260 | 260 | * @param string $prefix |
261 | 261 | * @param array $config |
@@ -44,7 +44,7 @@ |
||
44 | 44 | * |
45 | 45 | * @param \PDO $connection |
46 | 46 | * @param array $config |
47 | - * @return void |
|
47 | + * @return PDO|null |
|
48 | 48 | */ |
49 | 49 | protected function configureEncoding($connection, array $config) |
50 | 50 | { |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | /** |
274 | 274 | * Get all of the support drivers. |
275 | 275 | * |
276 | - * @return array |
|
276 | + * @return string[] |
|
277 | 277 | */ |
278 | 278 | public function supportedDrivers() |
279 | 279 | { |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | /** |
284 | 284 | * Get all of the drivers that are actually available. |
285 | 285 | * |
286 | - * @return array |
|
286 | + * @return string[] |
|
287 | 287 | */ |
288 | 288 | public function availableDrivers() |
289 | 289 | { |
@@ -233,8 +233,8 @@ discard block |
||
233 | 233 | * Add an "or where" clause to the query. |
234 | 234 | * |
235 | 235 | * @param \Closure|array|string $column |
236 | - * @param mixed $operator |
|
237 | - * @param mixed $value |
|
236 | + * @param string $operator |
|
237 | + * @param integer $value |
|
238 | 238 | * @return \Illuminate\Database\Eloquent\Builder|static |
239 | 239 | */ |
240 | 240 | public function orWhere($column, $operator = null, $value = null) |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | * Execute the query as a "select" statement. |
454 | 454 | * |
455 | 455 | * @param array $columns |
456 | - * @return \Illuminate\Database\Eloquent\Collection|static[] |
|
456 | + * @return \Illuminate\Support\Collection |
|
457 | 457 | */ |
458 | 458 | public function get($columns = ['*']) |
459 | 459 | { |
@@ -784,7 +784,7 @@ discard block |
||
784 | 784 | * Increment a column's value by a given amount. |
785 | 785 | * |
786 | 786 | * @param string $column |
787 | - * @param float|int $amount |
|
787 | + * @param integer $amount |
|
788 | 788 | * @param array $extra |
789 | 789 | * @return int |
790 | 790 | */ |
@@ -799,7 +799,7 @@ discard block |
||
799 | 799 | * Decrement a column's value by a given amount. |
800 | 800 | * |
801 | 801 | * @param string $column |
802 | - * @param float|int $amount |
|
802 | + * @param integer $amount |
|
803 | 803 | * @param array $extra |
804 | 804 | * @return int |
805 | 805 | */ |
@@ -847,7 +847,7 @@ discard block |
||
847 | 847 | * |
848 | 848 | * Since we do not apply scopes here, the row will actually be deleted. |
849 | 849 | * |
850 | - * @return mixed |
|
850 | + * @return integer |
|
851 | 851 | */ |
852 | 852 | public function forceDelete() |
853 | 853 | { |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | /** |
174 | 174 | * Determine if a key exists in the collection. |
175 | 175 | * |
176 | - * @param mixed $key |
|
176 | + * @param \Closure $key |
|
177 | 177 | * @param mixed $operator |
178 | 178 | * @param mixed $value |
179 | 179 | * @return bool |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | /** |
211 | 211 | * Merge the collection with the given items. |
212 | 212 | * |
213 | - * @param \ArrayAccess|array $items |
|
213 | + * @param Collection $items |
|
214 | 214 | * @return static |
215 | 215 | */ |
216 | 216 | public function merge($items) |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | * |
167 | 167 | * @param array $attributes |
168 | 168 | * @param array $mutatedAttributes |
169 | - * @return array |
|
169 | + * @return string |
|
170 | 170 | */ |
171 | 171 | protected function addCastAttributesToArray(array $attributes, array $mutatedAttributes) |
172 | 172 | { |
@@ -753,7 +753,7 @@ discard block |
||
753 | 753 | * Determine if the given value is a standard date format. |
754 | 754 | * |
755 | 755 | * @param string $value |
756 | - * @return bool |
|
756 | + * @return integer |
|
757 | 757 | */ |
758 | 758 | protected function isStandardDateFormat($value) |
759 | 759 | { |
@@ -836,7 +836,7 @@ discard block |
||
836 | 836 | * Determine whether an attribute should be cast to a native type. |
837 | 837 | * |
838 | 838 | * @param string $key |
839 | - * @param array|string|null $types |
|
839 | + * @param string[] $types |
|
840 | 840 | * @return bool |
841 | 841 | */ |
842 | 842 | public function hasCast($key, $types = null) |
@@ -1162,7 +1162,7 @@ discard block |
||
1162 | 1162 | /** |
1163 | 1163 | * Get all of the attribute mutator methods. |
1164 | 1164 | * |
1165 | - * @param mixed $class |
|
1165 | + * @param string $class |
|
1166 | 1166 | * @return array |
1167 | 1167 | */ |
1168 | 1168 | protected static function getMutatorMethods($class) |
@@ -63,7 +63,7 @@ |
||
63 | 63 | /** |
64 | 64 | * Get the observable event names. |
65 | 65 | * |
66 | - * @return array |
|
66 | + * @return string[] |
|
67 | 67 | */ |
68 | 68 | public function getObservableEvents() |
69 | 69 | { |
@@ -622,7 +622,7 @@ discard block |
||
622 | 622 | * @param string $name |
623 | 623 | * @param string $type |
624 | 624 | * @param string $id |
625 | - * @return array |
|
625 | + * @return string[] |
|
626 | 626 | */ |
627 | 627 | protected function getMorphs($name, $type, $id) |
628 | 628 | { |
@@ -696,7 +696,7 @@ discard block |
||
696 | 696 | * Set the given relationship on the model. |
697 | 697 | * |
698 | 698 | * @param string $relation |
699 | - * @param mixed $value |
|
699 | + * @param Model|null $value |
|
700 | 700 | * @return $this |
701 | 701 | */ |
702 | 702 | public function setRelation($relation, $value) |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | /** |
52 | 52 | * Set the value of the "created at" attribute. |
53 | 53 | * |
54 | - * @param mixed $value |
|
54 | + * @param Carbon $value |
|
55 | 55 | * @return $this |
56 | 56 | */ |
57 | 57 | public function setCreatedAt($value) |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | /** |
65 | 65 | * Set the value of the "updated at" attribute. |
66 | 66 | * |
67 | - * @param mixed $value |
|
67 | + * @param Carbon $value |
|
68 | 68 | * @return $this |
69 | 69 | */ |
70 | 70 | public function setUpdatedAt($value) |