Refactor 1 #10
Annotations
10 errors and 1 warning
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'}.
|
src/Embed/Embed.php#L50
Method Hyvor\Unfold\Embed\Embed::getUnfoldedObject() has no return type specified.
|
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
|
src/Embed/EmbedParserAbstract.php#L70
Call to an undefined method Hyvor\Unfold\Embed\EmbedParserAbstract::oEmbedUrl().
|
src/Embed/Exception/UnableToResolveEmbedException.php#L10
Constructor of class Hyvor\Unfold\Embed\Exception\UnableToResolveEmbedException has an unused parameter $message.
|
src/Link/Link.php#L33
Variable $response might not be defined.
|
src/Link/Link.php#L34
Variable $response might not be defined.
|
src/Link/Link.php#L37
Variable $response might not be defined.
|
src/Link/Metadata/MetadataParser.php#L106
Parameter #1 $haystack of function str_contains expects string, DateTimeInterface|string|null given.
|
src/Link/Metadata/MetadataParser.php#L106
Parameter #1 $haystack of function str_contains expects string, DateTimeInterface|string|null given.
|
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/
|
This job failed
Loading