Skip to content

TmpStreamSerializerTrait::serialize(): harden against empty graph #71

TmpStreamSerializerTrait::serialize(): harden against empty graph

TmpStreamSerializerTrait::serialize(): harden against empty graph #71

Triggered via push August 29, 2023 16:06
Status Failure
Total duration 3m 17s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 2 warnings
phpstan: src/quickRdfIo/JsonLdStreamSerializer.php#L116
Parameter #2 $subject of method quickRdfIo\JsonLdStreamSerializer::processSubject() expects rdfInterface\BlankNodeInterface|rdfInterface\NamedNodeInterface, rdfInterface\TermInterface given.
phpstan: src/quickRdfIo/NQuadsParser.php#L317
While loop condition is always true.
phpstan: src/quickRdfIo/NQuadsParser.php#L347
Parameter #1 $string of function strlen expects string, string|null given.
phpstan: src/quickRdfIo/NQuadsParser.php#L348
Parameter #1 $iri of static method rdfInterface\DataFactoryInterface::namedNode() expects string|Stringable, string|null given.
phpstan: src/quickRdfIo/NQuadsParser.php#L354
Parameter #1 $string of function strlen expects string, string|null given.
phpstan: src/quickRdfIo/NQuadsParser.php#L360
Parameter #1 $iri of static method rdfInterface\DataFactoryInterface::namedNode() expects string|Stringable, string|null given.
phpstan: src/quickRdfIo/NQuadsParser.php#L367
Parameter #1 $string of function strlen expects string, string|null given.
phpstan: src/quickRdfIo/NQuadsParser.php#L378
Parameter #1 $string of function strlen expects string, string|null given.
phpstan: src/quickRdfIo/NQuadsSerializer.php#L78
Parameter #1 $res of static method rdfHelpers\NtriplesUtil::serializeIri() expects rdfInterface\BlankNodeInterface|rdfInterface\NamedNodeInterface, rdfInterface\TermInterface given.
phpstan: src/quickRdfIo/NQuadsSerializer.php#L87
Parameter #1 $term of static method rdfHelpers\NtriplesUtil::serialize() expects rdfInterface\BlankNodeInterface|rdfInterface\LiteralInterface|rdfInterface\NamedNodeInterface|rdfInterface\QuadInterface, rdfInterface\TermInterface given.
phpunit
Process completed with exit code 1.
phpstan
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
phpunit
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/