Skip to content

Redmine class restored and phpstan fixes. #244

Redmine class restored and phpstan fixes.

Redmine class restored and phpstan fixes. #244

Triggered via push December 3, 2024 12:09
Status Failure
Total duration 38s
Artifacts

test.yml

on: push
Matrix: phpunit
Fit to window
Zoom out
Zoom in

Annotations

17 errors and 2 warnings
phpstan: src/acdhOeaw/arche/lib/ingest/File.php#L160
Parameter #1 $filter of method rdfInterface\DatasetNodeInterface::getObject() expects (callable(): mixed)|rdfInterface\QuadCompareInterface|rdfInterface\QuadIteratorAggregateInterface|rdfInterface\QuadIteratorInterface|null, quickRdf\NamedNode given.
phpstan: src/acdhOeaw/arche/lib/ingest/Indexer.php#L465
Parameter #1 $string of function substr expects string, string|null given.
phpstan: src/acdhOeaw/arche/lib/ingest/Indexer.php#L468
Parameter #1 $idPrefix of class acdhOeaw\arche\lib\ingest\util\FileId constructor expects string, string|null given.
phpstan: src/acdhOeaw/arche/lib/ingest/MetadataCollection.php#L401
Cannot cast object to string.
phpstan: src/acdhOeaw/arche/lib/ingest/MetadataCollection.php#L408
Part $i (object) of encapsed string cannot be cast to string.
phpstan: src/acdhOeaw/arche/lib/ingest/MetadataCollection.php#L412
Method acdhOeaw\arche\lib\ingest\MetadataCollection::filterResources() should return array<rdfInterface\TermInterface> but returns array<int, object>.
phpstan: src/acdhOeaw/arche/lib/ingest/SkosVocabulary.php#L413
Parameter #1 $entities of method acdhOeaw\arche\lib\ingest\SkosVocabulary::processRelations() expects array<rdfInterface\NamedNodeInterface>, array<rdfInterface\NamedNodeInterface|string> given.
phpstan: src/acdhOeaw/arche/lib/ingest/SkosVocabulary.php#L414
Parameter #1 $entities of method acdhOeaw\arche\lib\ingest\SkosVocabulary::assureTitles() expects array<rdfInterface\TermInterface>, array<rdfInterface\TermInterface|string> given.
phpstan: src/acdhOeaw/arche/lib/ingest/SkosVocabulary.php#L415
Parameter #1 $entities of method acdhOeaw\arche\lib\ingest\SkosVocabulary::dropProperties() expects array<rdfInterface\TermInterface>, array<rdfInterface\TermInterface|string> given.
phpstan: src/acdhOeaw/arche/lib/ingest/SkosVocabulary.php#L416
Parameter #1 $entities of method acdhOeaw\arche\lib\ingest\SkosVocabulary::assureLiterals() expects array<rdfInterface\TermInterface>, array<rdfInterface\TermInterface|string> given.
phpunit (8.1)
Process completed with exit code 127.
phpunit (8.3)
The job was canceled because "_8_1" failed.
phpunit (8.3)
Process completed with exit code 127.
phpunit (8.2)
The job was canceled because "_8_1" failed.
phpunit (8.2)
The operation was canceled.
phpunit (8.4)
The job was canceled because "_8_1" failed.
phpunit (8.4)
The operation was canceled.
phpstan
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
phpunit (8.1)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636