Skip to content

Refactor 1

Refactor 1 #10

Triggered via pull request October 21, 2024 07:40
Status Failure
Total duration 20s
Artifacts

ci.yaml

on: pull_request
PHP Tests
9s
PHP Tests
PHP Static Analysis
12s
PHP Static Analysis
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
PHP Static Analysis: src/Embed/Embed.php#L22
PHPDoc tag @var for constant Hyvor\Unfold\Embed\Embed::PARSERS with type array<Hyvor\Unfold\Embed\EmbedParserAbstract> is incompatible with value array{'Hyvor\\Unfold\\Embed\\Platforms\\Youtube', 'Hyvor\\Unfold\\Embed\\Platforms\\Reddit', 'Hyvor\\Unfold\\Embed\\Platforms\\Tiktok', 'Hyvor\\Unfold\\Embed\\Platforms\\Twitter', 'Hyvor\\Unfold\\Embed\\Platforms\\Reddit'}.
PHP Static Analysis: src/Embed/Embed.php#L50
Method Hyvor\Unfold\Embed\Embed::getUnfoldedObject() has no return type specified.
PHP Static Analysis: src/Embed/Embed.php#L50
PHPDoc tag @return has invalid value ($context->method is EmbedMethodEnum::EMBED ? Unfolded : ?Unfolded): Unexpected token "$context", expected type at offset 19
PHP Static Analysis: src/Embed/EmbedParserAbstract.php#L70
Call to an undefined method Hyvor\Unfold\Embed\EmbedParserAbstract::oEmbedUrl().
PHP Static Analysis: src/Embed/Exception/UnableToResolveEmbedException.php#L10
Constructor of class Hyvor\Unfold\Embed\Exception\UnableToResolveEmbedException has an unused parameter $message.
PHP Static Analysis: src/Link/Link.php#L33
Variable $response might not be defined.
PHP Static Analysis: src/Link/Link.php#L34
Variable $response might not be defined.
PHP Static Analysis: src/Link/Link.php#L37
Variable $response might not be defined.
PHP Static Analysis: src/Link/Metadata/MetadataParser.php#L106
Parameter #1 $haystack of function str_contains expects string, DateTimeInterface|string|null given.
PHP Static Analysis: src/Link/Metadata/MetadataParser.php#L106
Parameter #1 $haystack of function str_contains expects string, DateTimeInterface|string|null given.
PHP Tests
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
PHP Static Analysis
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/