Skip to content

Commit 1cfe68c

Browse files
authored
refactor: Fix phpstan errors parameterByRef.unusedType (#9487)
1 parent 5d1d53a commit 1cfe68c

File tree

4 files changed

+5
-14
lines changed

4 files changed

+5
-14
lines changed

system/Log/Handlers/ChromeLoggerHandler.php

+2
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ protected function format($object)
151151
/**
152152
* Attaches the header and the content to the passed in request object.
153153
*
154+
* @param-out ResponseInterface $response
155+
*
154156
* @return void
155157
*/
156158
public function sendLogs(?ResponseInterface &$response = null)

tests/_support/Validation/TestRules.php

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515

1616
class TestRules
1717
{
18+
/**
19+
* @param-out string $error
20+
*/
1821
public function customError(string $str, ?string &$error = null)
1922
{
2023
$error = 'My lovely error';

utils/phpstan-baseline/loader.neon

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ includes:
2525
- notIdentical.alwaysTrue.neon
2626
- nullCoalesce.property.neon
2727
- nullCoalesce.variable.neon
28-
- parameterByRef.unusedType.neon
2928
- property.defaultValue.neon
3029
- property.nonObject.neon
3130
- property.notFound.neon

utils/phpstan-baseline/parameterByRef.unusedType.neon

-13
This file was deleted.

0 commit comments

Comments
 (0)