We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef18216 commit 89c6efdCopy full SHA for 89c6efd
2 files changed
.gitignore
@@ -1,7 +1,18 @@
1
-.DS_Store
+# Composer
2
composer.lock
3
-vendor
4
-.idea
5
-composer.phar
+/vendor
+
+# PHPUnit
6
+/.phpunit.cache
7
.phpunit.result.cache
-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
README.md
@@ -183,9 +183,9 @@ The following function uses the `htmlspecialchars` function
183
with specific flags to ensure proper encoding:
184
185
```php
186
-function html(string $text = null): string
+function html(?string $text = null): string
187
{
188
- return htmlspecialchars($text, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
+ return htmlspecialchars($text ?? '', ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
189
}
190
```
191
0 commit comments