Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion bin/quickdump.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@

declare(strict_types=1);

use function Safe\file_get_contents;

/**
* This script is used for generating the examples in the README.
*/

require_once(__DIR__ . '/../vendor/autoload.php');

$sSource = \file_get_contents('php://stdin');
$sSource = file_get_contents('php://stdin');
$oParser = new Sabberworm\CSS\Parser($sSource);
Comment on lines +14 to 15
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have expected a warning from Stan about possibly passing false to a method that expects a string.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, me too.


$oDoc = $oParser->parse();
Expand Down