Skip to content

Draft: Adds strong typing, more typing, php 8.2 features #451

Draft: Adds strong typing, more typing, php 8.2 features

Draft: Adds strong typing, more typing, php 8.2 features #451

Triggered via pull request October 16, 2025 04:28
Status Failure
Total duration 37s
Artifacts

phpstan.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
phpstan: src/Claims/IssuedAt.php#L27
Return type mixed of method PHPOpenSourceSaver\JWTAuth\Claims\IssuedAt::validateCreate() is not covariant with return type mixed of method PHPOpenSourceSaver\JWTAuth\Claims\Claim::validateCreate().
phpstan: src/Claims/IssuedAt.php#L25
Property PHPOpenSourceSaver\JWTAuth\Claims\IssuedAt::$name overriding property PHPOpenSourceSaver\JWTAuth\Claims\Claim::$name (string) should also have native type string.
phpstan: src/Claims/Expiration.php#L23
Return type mixed of method PHPOpenSourceSaver\JWTAuth\Claims\Expiration::validatePayload() is not covariant with return type mixed of method PHPOpenSourceSaver\JWTAuth\Claims\Claim::validatePayload().
phpstan: src/Claims/Expiration.php#L21
Property PHPOpenSourceSaver\JWTAuth\Claims\Expiration::$name overriding property PHPOpenSourceSaver\JWTAuth\Claims\Claim::$name (string) should also have native type string.
phpstan: src/Claims/DatetimeTrait.php (in context of class PHPOpenSourceSaver/JWTAuth/Claims/NotBefore)#L47
Return type mixed of method PHPOpenSourceSaver\JWTAuth\Claims\NotBefore::validateCreate() is not covariant with return type mixed of method PHPOpenSourceSaver\JWTAuth\Claims\Claim::validateCreate().
phpstan: src/Claims/DatetimeTrait.php (in context of class PHPOpenSourceSaver/JWTAuth/Claims/NotBefore)#L34
Return type mixed of method PHPOpenSourceSaver\JWTAuth\Claims\NotBefore::setValue() is not covariant with return type static(PHPOpenSourceSaver\JWTAuth\Claims\Claim) of method PHPOpenSourceSaver\JWTAuth\Claims\Claim::setValue().
phpstan: src/Claims/DatetimeTrait.php (in context of class PHPOpenSourceSaver/JWTAuth/Claims/IssuedAt)#L34
Return type mixed of method PHPOpenSourceSaver\JWTAuth\Claims\IssuedAt::setValue() is not covariant with return type static(PHPOpenSourceSaver\JWTAuth\Claims\Claim) of method PHPOpenSourceSaver\JWTAuth\Claims\Claim::setValue().
phpstan: src/Claims/DatetimeTrait.php (in context of class PHPOpenSourceSaver/JWTAuth/Claims/Expiration)#L47
Return type mixed of method PHPOpenSourceSaver\JWTAuth\Claims\Expiration::validateCreate() is not covariant with return type mixed of method PHPOpenSourceSaver\JWTAuth\Claims\Claim::validateCreate().
phpstan: src/Claims/DatetimeTrait.php (in context of class PHPOpenSourceSaver/JWTAuth/Claims/Expiration)#L34
Return type mixed of method PHPOpenSourceSaver\JWTAuth\Claims\Expiration::setValue() is not covariant with return type static(PHPOpenSourceSaver\JWTAuth\Claims\Claim) of method PHPOpenSourceSaver\JWTAuth\Claims\Claim::setValue().
phpstan: src/Claims/Audience.php#L17
Property PHPOpenSourceSaver\JWTAuth\Claims\Audience::$name overriding property PHPOpenSourceSaver\JWTAuth\Claims\Claim::$name (string) should also have native type string.