Skip to content

[Proposal]: Make sure examples work in playground #2266

@domis86

Description

@domis86

Describe the Proposal

Some examples result in error when opened in playground.

To reproduce:

Go to https://flow-php.com/data_frame/data_reading/json/ and click "play" button . You are redirected to https://flow-php.com/playground/data_frame/data_reading/json/ . Click "Run" button. Error appears in output:

2:35:21 PM[SUCCESS]
Uncaught throwable 'JsonMachine\Exception\SyntaxErrorException': Unexpected symbol '<!doctype' At position 0.
At phar:///workspace/tools/flow.phar/vendor/halaxa/json-machine/src/Parser.php:438

Consider adding some automatic check (simple crawler?) - which runs all examples in browser and asserts if there is no error in output etc.

API Adjustments

No response

Are you intending to also work on proposed change?

None

Are you interested in sponsoring this change?

None

Integration & Dependencies

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

Todo

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions