Skip to content

Add PHPStan to tests workflow #40

Add PHPStan to tests workflow

Add PHPStan to tests workflow #40

Triggered via pull request May 19, 2024 18:04
@tnyleatnylea
synchronize #14
Add-PHPStan
Status Failure
Total duration 1m 31s
Artifacts

tests.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
test: vendor/devdojo/auth/src/Actions/TwoFactorAuth/DisableTwoFactorAuthentication.php#L17
Cannot access property $two_factor_secret on mixed.
test: vendor/devdojo/auth/src/Actions/TwoFactorAuth/DisableTwoFactorAuthentication.php#L18
Cannot access property $two_factor_recovery_codes on mixed.
test: vendor/devdojo/auth/src/Actions/TwoFactorAuth/DisableTwoFactorAuthentication.php#L19
Cannot access property $two_factor_confirmed_at on mixed.
test: vendor/devdojo/auth/src/Actions/TwoFactorAuth/GenerateNewRecoveryCodes.php#L16
Method Devdojo\Auth\Actions\TwoFactorAuth\GenerateNewRecoveryCodes::__invoke() return type with generic class Illuminate\Support\Collection does not specify its types: TKey, TValue
test: vendor/devdojo/auth/src/Actions/TwoFactorAuth/GenerateNewRecoveryCodes.php#L16
PHPDoc tag @return with type void is incompatible with native type Illuminate\Support\Collection.
test: vendor/devdojo/auth/src/Actions/TwoFactorAuth/GenerateNewRecoveryCodes.php#L23
Method Devdojo\Auth\Actions\TwoFactorAuth\GenerateNewRecoveryCodes::generate() has no return type specified.
test: vendor/devdojo/auth/src/Actions/TwoFactorAuth/GenerateQrCodeAndSecretKey.php#L19
Method Devdojo\Auth\Actions\TwoFactorAuth\GenerateQrCodeAndSecretKey::__invoke() return type has no value type specified in iterable type array.
test: vendor/devdojo/auth/src/Actions/TwoFactorAuth/GenerateQrCodeAndSecretKey.php#L19
PHPDoc tag @return with type void is incompatible with native type array.
test: vendor/devdojo/auth/src/Actions/TwoFactorAuth/GenerateQrCodeAndSecretKey.php#L30
Parameter #1 $company of method PragmaRX\Google2FA\Google2FA::getQRCodeUrl() expects string, mixed given.
test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test
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/