File tree 2 files changed +18
-7
lines changed
2 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 1
- .DS_Store
1
+ # Composer
2
2
composer.lock
3
- vendor
4
- .idea
5
- composer.phar
3
+ /vendor
4
+
5
+ # PHPUnit
6
+ /.phpunit.cache
6
7
.phpunit.result.cache
7
- build /
8
+
9
+ # IDEs
10
+ /.fleet
11
+ /.idea
12
+ /.vscode
13
+
14
+ # Build artifacts and temporary files
15
+ .DS_Store
16
+ clover.xml
17
+ /build
18
+ /coverage
Original file line number Diff line number Diff line change @@ -183,9 +183,9 @@ The following function uses the `htmlspecialchars` function
183
183
with specific flags to ensure proper encoding:
184
184
185
185
``` php
186
- function html(string $text = null): string
186
+ function html(? string $text = null): string
187
187
{
188
- return htmlspecialchars($text, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
188
+ return htmlspecialchars($text ?? '' , ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
189
189
}
190
190
```
191
191
You can’t perform that action at this time.
0 commit comments