Update OptimizeHeroImages::generateImg()
test cases
#1250
Annotations
10 errors and 2 warnings
src/Cli/AmpExecutable.php#L41
PHPDoc tag @var with type AmpProject\Cli\Command is not subtype of native type AmpProject\Cli\Command\Optimize|AmpProject\Cli\Command\Validate.
|
src/Cli/Options.php#L545
Call to function is_array() with array will always evaluate to true.
|
src/Cli/TableFormatter.php#L384
Call to function is_int() with int will always evaluate to true.
|
src/Cli/TableFormatter.php#L388
Call to function is_string() with string will always evaluate to true.
|
src/Dom/Document.php#L382
Instanceof between AmpProject\Dom\Document\Filter and AmpProject\Dom\Document\Filter will always evaluate to true.
|
src/Dom/Document/Filter/DocumentEncoding.php#L129
Strict comparison using !== between string and false will always evaluate to true.
|
src/Dom/Document/Filter/MustacheScriptTemplates.php#L130
Call to an undefined method DOMNode::setAttribute().
|
src/Dom/Element.php#L116
Instanceof between DOMAttr and DOMAttr will always evaluate to true.
|
src/Html/Parser/ParsedTag.php#L59
Call to function is_array() with array will always evaluate to true.
|
src/Optimizer/Transformer/MinifyHtml.php#L73
Instanceof between DOMNode and DOMNode will always evaluate to true.
|
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/
|
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
The logs for this run have expired and are no longer available.
Loading