Skip to content

Commit da9e4f1

Browse files
committed
phpstan fix
1 parent 618ef97 commit da9e4f1

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

phpstan-baseline.neon

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,9 @@ parameters:
1717
identifier: function.alreadyNarrowedType
1818
count: 1
1919
path: src/OutputFilter.php
20+
21+
-
22+
message: '#^Method Joomla\\Filter\\OutputFilter\:\:cleanText\(\) never assigns null to &\$text so it can be removed from the by\-ref type\.$#'
23+
identifier: parameterByRef.unusedType
24+
count: 1
25+
path: src/OutputFilter.php

src/OutputFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public static function ampReplace($text)
217217
/**
218218
* Cleans text of all formatting and scripting code.
219219
*
220-
* @param string $text Text to clean
220+
* @param ?string $text Text to clean
221221
*
222222
* @return string Cleaned text.
223223
*

0 commit comments

Comments
 (0)