Skip to content

Commit 8a46621

Browse files
committed
Fixed missing null definition in method argument.
1 parent d80b212 commit 8a46621

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cssdoc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public function open(string $url, $context = null, ?string &$error = null) : str
215215
* @param ?string &$error A reference to any user error that is generated
216216
* @return bool Whether the input CSS was parsed
217217
*/
218-
public function load(string $css, string $charset = null, ?string &$error = null) : bool {
218+
public function load(string $css, ?string $charset = null, ?string &$error = null) : bool {
219219

220220
// detect the charset
221221
if ($charset || ($charset = $this->getCharsetFromCss($css)) !== null) {
@@ -307,7 +307,7 @@ public function compile(array $options = []) : ?string {
307307
* @param array $options An array indicating output options, this is merged with cssdoc::$output
308308
* @return string|false The compiled CSS, or false if the file could not be saved
309309
*/
310-
public function save(string $file = null, array $options = []) : string|false {
310+
public function save(?string $file = null, array $options = []) : string|false {
311311
$css = $this->compile($options);
312312

313313
// save file

0 commit comments

Comments
 (0)