Refactor ImageCDN parsing to rely on HTML API instead of RegExps #74874
tests.yml
on: pull_request
Determine tests matrix
6s
Storybook tests
3m 24s
Check plugin monorepo dep versions
40s
Static analysis
4m 51s
Matrix: run-tests
Annotations
26 errors
PHP tests: PHP 8.3 WP latest
Tests for packages/image-cdn failed!
|
PHP tests: PHP 8.3 WP latest
Process completed with exit code 1.
|
PHP tests: PHP 7.3 WP latest
Tests for packages/image-cdn failed!
|
PHP tests: PHP 7.3 WP latest
Process completed with exit code 1.
|
PHP tests: PHP 8.2 WP latest
Tests for packages/image-cdn failed!
|
PHP tests: PHP 8.2 WP latest
Process completed with exit code 1.
|
PHP tests: PHP 7.4 WP latest
Tests for packages/image-cdn failed!
|
PHP tests: PHP 7.4 WP latest
Process completed with exit code 1.
|
PHP tests: PHP 8.1 WP latest with wpcomsh
Tests for packages/image-cdn failed!
|
PHP tests: PHP 8.1 WP latest with wpcomsh
Process completed with exit code 1.
|
PHP tests: PHP 8.0 WP latest
Tests for packages/image-cdn failed!
|
PHP tests: PHP 8.0 WP latest
Process completed with exit code 1.
|
Static analysis:
projects/packages/image-cdn/src/class-image-cdn.php#L468
ParamError PhanParamSuspiciousOrder Argument #2 of this call to \str_starts_with is typically a literal or constant but isn't, but argument #1 (which is typically a variable) is a literal or constant. The arguments may be in the wrong order.
|
Static analysis:
projects/packages/image-cdn/src/class-image-cdn.php#L476
TypeError PhanTypeMismatchDimFetchNullable When fetching an array index from a value of type non-empty-array<mixed,mixed>, found an array index of type ?string, but expected the index to be of the non-nullable type int|string
|
Static analysis:
projects/packages/image-cdn/src/class-image-cdn.php#L477
TypeError PhanTypeMismatchDimFetchNullable When fetching an array index from a value of type non-empty-array<mixed,mixed>, found an array index of type ?string, but expected the index to be of the non-nullable type int|string
|
Static analysis:
projects/packages/image-cdn/src/class-image-cdn.php#L478
TypeError PhanTypeMismatchDimFetchNullable When fetching an array index from a value of type non-empty-array<mixed,mixed>, found an array index of type ?string, but expected the index to be of the non-nullable type int|string
|
Static analysis:
projects/packages/image-cdn/src/class-image-cdn.php#L498
TypeError PhanTypeArraySuspiciousNullable Suspicious array access to $upload_dir of nullable type ?array
|
Static analysis:
projects/packages/image-cdn/src/class-image-cdn.php#L539
TypeError PhanTypeMismatchArgumentNullableInternal Argument 2 ($array) is $image_sizes of type ?array|?non-empty-array<mixed,mixed> but \array_key_exists() takes array (expected type to be non-nullable)
|
Static analysis:
projects/packages/image-cdn/src/class-image-cdn.php#L582
TypeError PhanTypeArraySuspiciousNullable Suspicious array access to $upload_dir of nullable type ?array
|
Static analysis
Process completed with exit code 1.
|
PHP tests: PHP 7.2 WP latest
Tests for packages/image-cdn failed!
|
PHP tests: PHP 7.2 WP latest
Process completed with exit code 1.
|
PHP tests: PHP 7.0 WP previous
Tests for packages/image-cdn failed!
|
PHP tests: PHP 7.0 WP previous
Process completed with exit code 1.
|
PHP tests: PHP 8.1 WP latest
Tests for packages/image-cdn failed!
|
PHP tests: PHP 8.1 WP latest
Process completed with exit code 1.
|