File tree Expand file tree Collapse file tree 2 files changed +18
-7
lines changed
Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 1- .DS_Store
1+ # Composer
22composer.lock
3- vendor
4- .idea
5- composer.phar
3+ /vendor
4+
5+ # PHPUnit
6+ /.phpunit.cache
67.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
183183with specific flags to ensure proper encoding:
184184
185185``` php
186- function html(string $text = null): string
186+ function html(? string $text = null): string
187187{
188- return htmlspecialchars($text, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
188+ return htmlspecialchars($text ?? '' , ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
189189}
190190```
191191
You can’t perform that action at this time.
0 commit comments