Skip to content

Adding WordPress Package Link Generator #278

Adding WordPress Package Link Generator

Adding WordPress Package Link Generator #278

Re-run triggered November 7, 2024 03:08
Status Failure
Total duration 1m 54s
Artifacts

test.yml

on: pull_request
Matrix: php
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 7 warnings
PHP 5.6 on ubuntu-latest Composer v2 (highest)
Process completed with exit code 255.
PHP 5.5 on ubuntu-latest Composer v2 (highest)
Process completed with exit code 255.
PHP 5.4 on ubuntu-latest Composer v2 (highest)
Process completed with exit code 255.
PHP 5.3 on ubuntu-latest Composer v2 (highest)
Process completed with exit code 255.
PHP 8.3 on ubuntu-latest Composer v2 (highest)
Process completed with exit code 1.
PHP 7.0 on ubuntu-latest Composer v2 (highest)
Process completed with exit code 2.
PHP 7.0 on ubuntu-latest Composer v1 (lowest)
Process completed with exit code 2.
PHP 5.3 on ubuntu-latest Composer v1 (lowest)
Process completed with exit code 255.
PHP 8.3 on ubuntu-latest Composer v2 (highest): src/Url/WordPressGenerator.php#L16
Escaped Mutant for Mutator "DecrementInteger": @@ @@ */ public function supportsPackage(PackageInterface $package) { - return 0 === strpos($package->getName(), 'wpackagist-plugin/') || 0 === strpos($package->getName(), 'wpackagist-theme/'); + return -1 === strpos($package->getName(), 'wpackagist-plugin/') || 0 === strpos($package->getName(), 'wpackagist-theme/'); } /** * Generates a compare URL for two versions of the same package.
PHP 8.3 on ubuntu-latest Composer v2 (highest): src/Url/WordPressGenerator.php#L16
Escaped Mutant for Mutator "DecrementInteger": @@ @@ */ public function supportsPackage(PackageInterface $package) { - return 0 === strpos($package->getName(), 'wpackagist-plugin/') || 0 === strpos($package->getName(), 'wpackagist-theme/'); + return 0 === strpos($package->getName(), 'wpackagist-plugin/') || -1 === strpos($package->getName(), 'wpackagist-theme/'); } /** * Generates a compare URL for two versions of the same package.
PHP 8.3 on ubuntu-latest Composer v2 (highest): src/Url/WordPressGenerator.php#L16
Escaped Mutant for Mutator "LogicalOr": @@ @@ */ public function supportsPackage(PackageInterface $package) { - return 0 === strpos($package->getName(), 'wpackagist-plugin/') || 0 === strpos($package->getName(), 'wpackagist-theme/'); + return 0 === strpos($package->getName(), 'wpackagist-plugin/') && 0 === strpos($package->getName(), 'wpackagist-theme/'); } /** * Generates a compare URL for two versions of the same package.
PHP 8.3 on ubuntu-latest Composer v2 (highest): src/Url/WordPressGenerator.php#L58
Escaped Mutant for Mutator "ProtectedVisibility": @@ @@ /** * @return string|null */ - protected function getPackageType(PackageInterface $package) + private function getPackageType(PackageInterface $package) { [$type] = explode('/', $package->getName(), 2); return 0 === strpos($type, 'wpackagist-') ? substr($type, 11) : null;
PHP 8.3 on ubuntu-latest Composer v2 (highest): src/Url/WordPressGenerator.php#L60
Escaped Mutant for Mutator "IncrementInteger": @@ @@ */ protected function getPackageType(PackageInterface $package) { - [$type] = explode('/', $package->getName(), 2); + [$type] = explode('/', $package->getName(), 3); return 0 === strpos($type, 'wpackagist-') ? substr($type, 11) : null; } /**
PHP 8.3 on ubuntu-latest Composer v2 (highest): src/Url/WordPressGenerator.php#L68
Escaped Mutant for Mutator "ProtectedVisibility": @@ @@ /** * @return string */ - protected function getPackageSlug(PackageInterface $package) + private function getPackageSlug(PackageInterface $package) { [, $slug] = explode('/', $package->getName(), 2); return $slug; } }
PHP 8.3 on ubuntu-latest Composer v2 (highest): src/Url/WordPressGenerator.php#L70
Escaped Mutant for Mutator "IncrementInteger": @@ @@ */ protected function getPackageSlug(PackageInterface $package) { - [, $slug] = explode('/', $package->getName(), 2); + [, $slug] = explode('/', $package->getName(), 3); return $slug; } }