Skip to content

Commit

Permalink
Merge branch 'master' of github.com:hexydec/cssdoc
Browse files Browse the repository at this point in the history
hexydec committed Dec 25, 2024

Verified

This commit was signed with the committer’s verified signature.
ReidWeb Peter Reid
2 parents 44533d6 + 14007fe commit 7e06e7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cssdoc.php
Original file line number Diff line number Diff line change
@@ -215,7 +215,7 @@ public function open(string $url, $context = null, ?string &$error = null) : str
* @param ?string &$error A reference to any user error that is generated
* @return bool Whether the input CSS was parsed
*/
public function load(string $css, string $charset = null, ?string &$error = null) : bool {
public function load(string $css, ?string $charset = null, ?string &$error = null) : bool {

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

// save file

0 comments on commit 7e06e7d

Please sign in to comment.