Skip to content

Should fix static analysis #278

Should fix static analysis

Should fix static analysis #278

Triggered via push January 29, 2025 19:29
Status Failure
Total duration 1m 25s
Artifacts

php.yml

on: push
0️⃣ Byte-level
5s
0️⃣ Byte-level
1️⃣ Syntax errors
13s
1️⃣ Syntax errors
3️⃣ Static Analysis
28s
3️⃣ Static Analysis
4️⃣ Exported files
3s
4️⃣ Exported files
Matrix: 2️⃣ Unit and Feature tests
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 4 warnings
3️⃣ Static Analysis: src/Attestation/AuthenticatorData.php#L386
Parameter &$endOffset @param-out type of method Laragear\WebAuthn\Attestation\AuthenticatorData::readAttestData() expects int, (float|int) given.
3️⃣ Static Analysis: src/Attestation/AuthenticatorData.php#L402
Parameter &$endOffset @param-out type of method Laragear\WebAuthn\Attestation\AuthenticatorData::readCredentialPublicKey() expects int, int|null given.
3️⃣ Static Analysis: src/Models/WebAuthnCredential.php#L65
PHPDoc tag @method for method Laragear\WebAuthn\Models\WebAuthnCredential::whereDisabled() return type contains unknown class static.
3️⃣ Static Analysis: src/Models/WebAuthnCredential.php#L65
PHPDoc tag @method for method Laragear\WebAuthn\Models\WebAuthnCredential::whereEnabled() return type contains unknown class static.
3️⃣ Static Analysis: src/Models/WebAuthnCredential.php#L106
Type Laragear\WebAuthn\Contracts\WebAuthnAuthenticatable in generic type Illuminate\Database\Eloquent\Relations\MorphTo<Laragear\WebAuthn\Contracts\WebAuthnAuthenticatable, $this(Laragear\WebAuthn\Models\WebAuthnCredential)> in PHPDoc tag @return is not subtype of template type TRelatedModel of Illuminate\Database\Eloquent\Model of class Illuminate\Database\Eloquent\Relations\MorphTo.
3️⃣ Static Analysis: src/Models/WebAuthnCredential.php#L108
Method Laragear\WebAuthn\Models\WebAuthnCredential::authenticatable() should return Illuminate\Database\Eloquent\Relations\MorphTo<Laragear\WebAuthn\Contracts\WebAuthnAuthenticatable, $this(Laragear\WebAuthn\Models\WebAuthnCredential)> but returns Illuminate\Database\Eloquent\Relations\MorphTo<Illuminate\Database\Eloquent\Model, $this(Laragear\WebAuthn\Models\WebAuthnCredential)>.
3️⃣ Static Analysis
Process completed with exit code 1.
2️⃣ Unit and Feature tests (8.1, 10.*, lowest)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
2️⃣ Unit and Feature tests (8.3, 10.*, lowest)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
2️⃣ Unit and Feature tests (8.4, 10.*, lowest)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
2️⃣ Unit and Feature tests (8.2, 10.*, lowest)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1