Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit a79250f

Browse files
committed
Merge branch 'develop' into php-maintainance
2 parents 5cea061 + 99d0ade commit a79250f

File tree

12 files changed

+39
-13
lines changed

12 files changed

+39
-13
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ jobs:
9090
- "7.3"
9191
- "7.4"
9292
- "8.0"
93+
- "8.1"
9394

9495
dependencies:
9596
- lowest

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
},
4343
"require-dev": {
4444
"guzzlehttp/guzzle": "^7.0 || ^6.0",
45-
"phpunit/phpunit": "^9.0",
45+
"phpunit/phpunit": "9.5.10",
4646
"phpspec/prophecy-phpunit": "^2.0",
47-
"symplify/easy-coding-standard-prefixed": "8.3.48 || 9.2.23",
47+
"symplify/easy-coding-standard": "10.0.2",
4848
"doctrine/cache": "^1.6 || ^2.0",
4949
"monolog/monolog": "^1.12 || ^2.0",
5050
"symfony/yaml": "^4.0 || ^3.4.38 || ^5.0",

src/Core/Helper/Annotate/AnnotationGenerator.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ protected function getJsonObjects(\RegexIterator $phpFiles)
9292
$jsonObjects = [];
9393
foreach ($phpFiles as $phpFile) {
9494
$class = $this->getClassName($phpFile->getRealPath());
95-
if (strpos($class, 'Core\\Helper') > 0) {
95+
if ($class != null && strpos($class, 'Core\\Helper') > 0) {
9696
continue;
9797
}
9898

@@ -112,7 +112,7 @@ protected function getCollectionObjects(\RegexIterator $phpFiles)
112112
$collectionObjects = [];
113113
foreach ($phpFiles as $phpFile) {
114114
$class = $this->getClassName($phpFile->getRealPath());
115-
if (strpos($class, 'Core\\Helper') > 0) {
115+
if ($class != null && strpos($class, 'Core\\Helper') > 0) {
116116
continue;
117117
}
118118

@@ -132,7 +132,7 @@ protected function getRequestObjects(\RegexIterator $phpFiles)
132132
$requestObjects = [];
133133
foreach ($phpFiles as $phpFile) {
134134
$class = $this->getClassName($phpFile->getRealPath());
135-
if (strpos($class, 'Core\\Helper') > 0) {
135+
if ($class != null && strpos($class, 'Core\\Helper') > 0) {
136136
continue;
137137
}
138138

@@ -152,7 +152,7 @@ protected function getRequestDomainObjects(\RegexIterator $phpFiles)
152152
$requestObjects = [];
153153
foreach ($phpFiles as $phpFile) {
154154
$class = $this->getClassName($phpFile->getRealPath());
155-
if (strpos($class, 'Core\\Helper') > 0) {
155+
if ($class != null && strpos($class, 'Core\\Helper') > 0) {
156156
continue;
157157
}
158158

@@ -164,10 +164,10 @@ protected function getRequestDomainObjects(\RegexIterator $phpFiles)
164164
) {
165165
$namespaceParts = explode("\\", $class->getNamespaceName());
166166
$domain = $namespaceParts[count($namespaceParts) - 1];
167-
if (strpos($class, 'ProductProjection') > 0) {
167+
if ($class != null && strpos($class, 'ProductProjection') > 0) {
168168
$domain = 'ProductProjections';
169169
}
170-
if (strpos($class, 'ProductsSuggest') > 0) {
170+
if ($class != null && strpos($class, 'ProductsSuggest') > 0) {
171171
$domain = 'ProductProjections';
172172
}
173173
$requestObjects[$domain][] = $class->getName();
@@ -183,7 +183,7 @@ protected function getUpdateObjects(\RegexIterator $phpFiles)
183183
$actions = [];
184184
foreach ($phpFiles as $phpFile) {
185185
$class = $this->getClassName($phpFile->getRealPath());
186-
if (strpos($class, 'Core\\Helper') > 0) {
186+
if ($class != null && strpos($class, 'Core\\Helper') > 0) {
187187
continue;
188188
}
189189

src/Core/Model/Common/AbstractJsonDeserializeObject.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ protected function getRaw($field, $default = null)
173173
return isset($this->rawData[$field])? $this->rawData[$field]: $default;
174174
}
175175

176+
#[\ReturnTypeWillChange]
176177
/**
177178
* (PHP 5 &gt;= 5.4.0)<br/>
178179
* Specify data which should be serialized to JSON

src/Core/Model/Common/Collection.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ public function setAt($offset, $object)
225225
return $this;
226226
}
227227

228+
#[\ReturnTypeWillChange]
228229
/**
229230
* (PHP 5 &gt;= 5.1.0)<br/>
230231
* Count elements of an object
@@ -244,6 +245,7 @@ public function count()
244245
}
245246

246247

248+
#[\ReturnTypeWillChange]
247249
/**
248250
* (PHP 5 &gt;= 5.0.0)<br/>
249251
* Return the current element
@@ -258,6 +260,7 @@ public function current()
258260
return null;
259261
}
260262

263+
#[\ReturnTypeWillChange]
261264
/**
262265
* (PHP 5 &gt;= 5.0.0)<br/>
263266
* Move forward to next element
@@ -269,6 +272,7 @@ public function next()
269272
$this->pos++;
270273
}
271274

275+
#[\ReturnTypeWillChange]
272276
/**
273277
* (PHP 5 &gt;= 5.0.0)<br/>
274278
* Return the key of the current element
@@ -283,6 +287,7 @@ public function key()
283287
return null;
284288
}
285289

290+
#[\ReturnTypeWillChange]
286291
/**
287292
* (PHP 5 &gt;= 5.0.0)<br/>
288293
* Checks if current position is valid
@@ -298,6 +303,7 @@ public function valid()
298303
return false;
299304
}
300305

306+
#[\ReturnTypeWillChange]
301307
/**
302308
* (PHP 5 &gt;= 5.0.0)<br/>
303309
* Rewind the Iterator to the first element
@@ -309,6 +315,7 @@ public function rewind()
309315
$this->pos = 0;
310316
}
311317

318+
#[\ReturnTypeWillChange]
312319
/**
313320
* (PHP 5 &gt;= 5.0.0)<br/>
314321
* Whether a offset exists
@@ -326,6 +333,7 @@ public function offsetExists($offset)
326333
return isset($this->rawData[$offset]) || isset($this->typeData[$offset]);
327334
}
328335

336+
#[\ReturnTypeWillChange]
329337
/**
330338
* (PHP 5 &gt;= 5.0.0)<br/>
331339
* Offset to retrieve
@@ -340,6 +348,7 @@ public function offsetGet($offset)
340348
return $this->getAt($offset);
341349
}
342350

351+
#[\ReturnTypeWillChange]
343352
/**
344353
* (PHP 5 &gt;= 5.0.0)<br/>
345354
* Offset to set
@@ -357,6 +366,7 @@ public function offsetSet($offset, $value)
357366
$this->setAt($offset, $value);
358367
}
359368

369+
#[\ReturnTypeWillChange]
360370
/**
361371
* (PHP 5 &gt;= 5.0.0)<br/>
362372
* Offset to unset

src/Core/Model/Common/Context.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ public static function of()
198198
return new static();
199199
}
200200

201+
#[\ReturnTypeWillChange]
201202
/**
202203
* @inheritDoc
203204
*/
@@ -206,6 +207,7 @@ public function offsetExists($offset)
206207
return isset($this->$offset);
207208
}
208209

210+
#[\ReturnTypeWillChange]
209211
/**
210212
* @inheritDoc
211213
*/
@@ -219,6 +221,7 @@ public function offsetGet($offset)
219221
return null;
220222
}
221223

224+
#[\ReturnTypeWillChange]
222225
/**
223226
* @inheritDoc
224227
*/
@@ -231,6 +234,7 @@ public function offsetSet($offset, $value)
231234
}
232235
}
233236

237+
#[\ReturnTypeWillChange]
234238
/**
235239
* @inheritDoc
236240
*/

src/Core/Model/Common/DateTimeDecorator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public function getUtcDateTime()
5656
return $dateTime;
5757
}
5858

59+
#[\ReturnTypeWillChange]
5960
/**
6061
* @return string
6162
*/

src/Core/Model/Common/LocalizedString.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ public function toArray()
136136
return $data;
137137
}
138138

139+
#[\ReturnTypeWillChange]
139140
/**
140141
* @return array
141142
*/

src/Core/Response/PagedQueryResponse.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public function getResults()
8484
}
8585

8686

87+
#[\ReturnTypeWillChange]
8788
/**
8889
* (PHP 5 &gt;= 5.0.0)<br/>
8990
* Retrieve an external iterator
@@ -97,6 +98,7 @@ public function getIterator()
9798
return new \ArrayIterator($this->results);
9899
}
99100

101+
#[\ReturnTypeWillChange]
100102
/**
101103
* (PHP 5 &gt;= 5.0.0)<br/>
102104
* Whether a offset exists
@@ -115,6 +117,7 @@ public function offsetExists($offset)
115117
return isset($results[$offset]);
116118
}
117119

120+
#[\ReturnTypeWillChange]
118121
/**
119122
* (PHP 5 &gt;= 5.0.0)<br/>
120123
* Offset to retrieve
@@ -130,6 +133,7 @@ public function offsetGet($offset)
130133
return $results[$offset];
131134
}
132135

136+
#[\ReturnTypeWillChange]
133137
/**
134138
* (PHP 5 &gt;= 5.0.0)<br/>
135139
* Offset to set
@@ -152,6 +156,7 @@ public function offsetSet($offset, $value)
152156
}
153157
}
154158

159+
#[\ReturnTypeWillChange]
155160
/**
156161
* (PHP 5 &gt;= 5.0.0)<br/>
157162
* Offset to unset

tests/unit/Builder/Update/GenericActionBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function getActionClasses()
3333
$actions = [];
3434
foreach ($phpFiles as $phpFile) {
3535
$class = $this->getClassName($phpFile->getRealPath());
36-
if (strpos($class, 'Core\\Helper') > 0) {
36+
if ($class != null && strpos($class, 'Core\\Helper') > 0) {
3737
continue;
3838
}
3939

0 commit comments

Comments
 (0)