Skip to content

Commit a9a4fb1

Browse files
Fix ReturnTypeWillChange attribute position (it must be above the function otherwise it's not applied) (#1161)
Co-authored-by: Markus Kalkbrenner <git@kalki.de>
1 parent c61db4c commit a9a4fb1

22 files changed

Lines changed: 24 additions & 24 deletions

File tree

src/Component/Analytics/Analytics.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,10 @@ public function addGrouping(Grouping $grouping): self
181181
return $this;
182182
}
183183

184-
#[\ReturnTypeWillChange]
185184
/**
186185
* {@inheritdoc}
187186
*/
187+
#[\ReturnTypeWillChange]
188188
public function jsonSerialize()
189189
{
190190
return array_filter([

src/Component/Analytics/Facet/Pivot.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ public function setSort($sort): self
9999
return $this;
100100
}
101101

102-
#[\ReturnTypeWillChange]
103102
/**
104103
* {@inheritdoc}
105104
*/
105+
#[\ReturnTypeWillChange]
106106
public function jsonSerialize()
107107
{
108108
return array_filter([

src/Component/Analytics/Facet/PivotFacet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ public function addPivot(Pivot $pivot): self
6767
return $this;
6868
}
6969

70-
#[\ReturnTypeWillChange]
7170
/**
7271
* {@inheritdoc}
7372
*/
73+
#[\ReturnTypeWillChange]
7474
public function jsonSerialize()
7575
{
7676
return array_filter([

src/Component/Analytics/Facet/QueryFacet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ public function addQuery(string $key, string $query): self
6666
return $this;
6767
}
6868

69-
#[\ReturnTypeWillChange]
7069
/**
7170
* {@inheritdoc}
7271
*/
72+
#[\ReturnTypeWillChange]
7373
public function jsonSerialize()
7474
{
7575
return array_filter([

src/Component/Analytics/Facet/RangeFacet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,10 @@ public function setOthers(array $others): self
276276
return $this;
277277
}
278278

279-
#[\ReturnTypeWillChange]
280279
/**
281280
* {@inheritdoc}
282281
*/
282+
#[\ReturnTypeWillChange]
283283
public function jsonSerialize()
284284
{
285285
return array_filter(

src/Component/Analytics/Facet/Sort/Criterion.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ public function setDirection(string $direction): self
118118
return $this;
119119
}
120120

121-
#[\ReturnTypeWillChange]
122121
/**
123122
* {@inheritdoc}
124123
*/
124+
#[\ReturnTypeWillChange]
125125
public function jsonSerialize()
126126
{
127127
return array_filter([

src/Component/Analytics/Facet/Sort/Sort.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ public function setOffset(?int $offset): self
114114
return $this;
115115
}
116116

117-
#[\ReturnTypeWillChange]
118117
/**
119118
* {@inheritdoc}
120119
*/
120+
#[\ReturnTypeWillChange]
121121
public function jsonSerialize()
122122
{
123123
return array_filter([

src/Component/Analytics/Facet/ValueFacet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ public function setSort($sort): self
8080
return $this;
8181
}
8282

83-
#[\ReturnTypeWillChange]
8483
/**
8584
* {@inheritdoc}
8685
*/
86+
#[\ReturnTypeWillChange]
8787
public function jsonSerialize()
8888
{
8989
return array_filter([

src/Component/Analytics/Grouping.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ public function addFacet(AbstractFacet $facet): self
134134
return $this;
135135
}
136136

137-
#[\ReturnTypeWillChange]
138137
/**
139138
* {@inheritdoc}
140139
*/
140+
#[\ReturnTypeWillChange]
141141
public function jsonSerialize()
142142
{
143143
return array_filter([

src/Component/Result/Debug/Detail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,14 @@ public function offsetExists($offset): bool
123123
return \in_array($offset, ['match', 'value', 'description']);
124124
}
125125

126-
#[\ReturnTypeWillChange]
127126
/**
128127
* ArrayAccess implementation.
129128
*
130129
* @param mixed $offset
131130
*
132131
* @return mixed
133132
*/
133+
#[\ReturnTypeWillChange]
134134
public function offsetGet($offset)
135135
{
136136
return $this->{$offset};

0 commit comments

Comments
 (0)