Skip to content

Commit 54cf146

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into 4.4
Conflicts: system/HTTP/URI.php
2 parents ceb5976 + 1a83ef4 commit 54cf146

43 files changed

Lines changed: 309 additions & 261 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/test-rector.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515
- '.github/workflows/test-rector.yml'
1616
- composer.json
1717
- rector.php
18+
- '**.neon.dist'
1819

1920
push:
2021
branches:
@@ -28,6 +29,7 @@ on:
2829
- '.github/workflows/test-rector.yml'
2930
- composer.json
3031
- rector.php
32+
- '**.neon.dist'
3133

3234
concurrency:
3335
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}

‎phpstan.neon.dist‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
conditionalTags:
2-
PhpParser\NodeVisitor\NodeConnectingVisitor:
3-
phpstan.parser.richParserNodeVisitor: true
4-
51
services:
62
-
73
class: Utils\PHPStan\CheckUseStatementsAfterLicenseRule
@@ -36,12 +32,9 @@ parameters:
3632
- system/Test/Filters/CITestStreamFilter.php
3733
- system/ThirdParty/*
3834
- system/Validation/Views/single.php
39-
parallel:
40-
processTimeout: 300.0
4135
scanDirectories:
4236
- system/Helpers
4337
dynamicConstantNames:
4438
- APP_NAMESPACE
4539
- CI_DEBUG
4640
- ENVIRONMENT
47-
- SODIUM_LIBRARY_VERSION

‎system/CLI/CLI.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ public static function wait(int $seconds, bool $countdown = false)
520520
/**
521521
* if operating system === windows
522522
*
523-
* @deprecated v4.3 Use `is_windows()` instead
523+
* @deprecated 4.3.0 Use `is_windows()` instead
524524
*/
525525
public static function isWindows(): bool
526526
{

‎system/Database/OCI8/Connection.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class Connection extends BaseConnection
9898
public $lastInsertedTableName;
9999

100100
/**
101-
* confirm DNS format.
101+
* confirm DSN format.
102102
*/
103103
private function isValidDSN(): bool
104104
{

‎system/Filters/FilterInterface.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ interface FilterInterface
3131
*
3232
* @param array|null $arguments
3333
*
34-
* @return mixed
34+
* @return RequestInterface|ResponseInterface|string|void
3535
*/
3636
public function before(RequestInterface $request, $arguments = null);
3737

@@ -43,7 +43,7 @@ public function before(RequestInterface $request, $arguments = null);
4343
*
4444
* @param array|null $arguments
4545
*
46-
* @return mixed
46+
* @return ResponseInterface|void
4747
*/
4848
public function after(RequestInterface $request, ResponseInterface $response, $arguments = null);
4949
}

‎system/HTTP/CLIRequest.php‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public function isCLI(): bool
221221
*
222222
* @param array|string|null $index Index for item to fetch from $_GET.
223223
* @param int|null $filter A filter name to apply.
224-
* @param mixed|null $flags
224+
* @param array|int|null $flags
225225
*
226226
* @return array|null
227227
*/
@@ -235,7 +235,7 @@ public function getGet($index = null, $filter = null, $flags = null)
235235
*
236236
* @param array|string|null $index Index for item to fetch from $_POST.
237237
* @param int|null $filter A filter name to apply
238-
* @param mixed $flags
238+
* @param array|int|null $flags
239239
*
240240
* @return array|null
241241
*/
@@ -249,7 +249,7 @@ public function getPost($index = null, $filter = null, $flags = null)
249249
*
250250
* @param array|string|null $index Index for item to fetch from $_POST or $_GET
251251
* @param int|null $filter A filter name to apply
252-
* @param mixed $flags
252+
* @param array|int|null $flags
253253
*
254254
* @return array|null
255255
*/
@@ -263,7 +263,7 @@ public function getPostGet($index = null, $filter = null, $flags = null)
263263
*
264264
* @param array|string|null $index Index for item to be fetched from $_GET or $_POST
265265
* @param int|null $filter A filter name to apply
266-
* @param mixed $flags
266+
* @param array|int|null $flags
267267
*
268268
* @return array|null
269269
*/

‎system/HTTP/CURLRequest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ public function setForm(array $params, bool $multipart = false)
263263
/**
264264
* Set JSON data to be sent.
265265
*
266-
* @param mixed $data
266+
* @param array|bool|float|int|object|string|null $data
267267
*
268268
* @return $this
269269
*/

‎system/HTTP/Files/FileCollection.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ protected function populateFiles()
159159
* Given a file array, will create UploadedFile instances. Will
160160
* loop over an array and create objects for each.
161161
*
162-
* @return array|UploadedFile
162+
* @return UploadedFile|UploadedFile[]
163163
*/
164164
protected function createFileObject(array $array)
165165
{
@@ -241,7 +241,7 @@ protected function fixFilesArray(array $data): array
241241
* @param array $index The index sequence we are navigating down
242242
* @param array $value The portion of the array to process
243243
*
244-
* @return mixed
244+
* @return UploadedFile|null
245245
*/
246246
protected function getValueDotNotationSyntax(array $index, array $value)
247247
{

‎system/HTTP/MessageInterface.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function getProtocolVersion(): string;
3030
/**
3131
* Sets the body of the current message.
3232
*
33-
* @param mixed $data
33+
* @param string $data
3434
*
3535
* @return $this
3636
*/
@@ -48,7 +48,7 @@ public function getBody();
4848
/**
4949
* Appends data to the body of the current message.
5050
*
51-
* @param mixed $data
51+
* @param string $data
5252
*
5353
* @return $this
5454
*/

‎system/HTTP/MessageTrait.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function setBody($data): self
5959
/**
6060
* Appends data to the body of the current message.
6161
*
62-
* @param mixed $data
62+
* @param string $data
6363
*
6464
* @return $this
6565
*/

0 commit comments

Comments
 (0)