We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9eb7616 commit 4362bf2Copy full SHA for 4362bf2
src/Rule/AbstractStrlen.php
@@ -138,7 +138,7 @@ protected function strlenIconv(string $str): int
138
* @return string
139
*
140
*/
141
- protected function substr(string $str, int $start, int $length = null): string
+ protected function substr(string $str, int $start, ?int $length = null): string
142
{
143
if ($this->iconv()) {
144
return $this->substrIconv($str, $start, $length);
0 commit comments