Skip to content

Commit ae8753f

Browse files
committed
Fix implicitly nullable $callback parameter
1 parent 2d9bf26 commit ae8753f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Function.HTML-Build-Attributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* @return string Returns a string of HTML attributes
1515
* or a empty string if $attributes is invalid or empty.
1616
*/
17-
function html_build_attributes($attributes, callable $escape = null)
17+
function html_build_attributes($attributes, ?callable $escape = null)
1818
{
1919
if (is_object($attributes) && !($attributes instanceof \Traversable)) {
2020
$attributes = get_object_vars($attributes);

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ breaking changes may occur between major releases.
2323
## API
2424

2525
```php
26-
html_build_attributes( array|object $attr [, callable $callback = null ] ) : string
26+
html_build_attributes( array|object $attr [, ?callable $callback = null ] ) : string
2727
```
2828

2929
### Parameters

0 commit comments

Comments
 (0)