Skip to content

Resolve the "Property is never assigned null so it can be removed from the property type" error detected by PHPStan #198

Resolve the "Property is never assigned null so it can be removed from the property type" error detected by PHPStan

Resolve the "Property is never assigned null so it can be removed from the property type" error detected by PHPStan #198

Triggered via pull request January 17, 2026 13:04
Status Success
Total duration 22s
Artifacts

phpstan.yml

on: pull_request
Matrix: Run PHPStan
Fit to window
Zoom out
Zoom in

Annotations

5 errors
Run PHPStan (4)
Process completed with exit code 1.
Run PHPStan (4): src/Supporting/CommunicationProvider.php#L732
Call to function property_exists() with $this(INTERMediator\FileMakerServer\RESTAPI\Supporting\CommunicationProvider) and 'responseBody' will always evaluate to true.
Run PHPStan (4): src/Supporting/CommunicationProvider.php#L556
Method INTERMediator\FileMakerServer\RESTAPI\Supporting\CommunicationProvider::getOAuthIdentifier() never returns string so it can be removed from the return type.
Run PHPStan (4): src/Supporting/CommunicationProvider.php#L556
Method INTERMediator\FileMakerServer\RESTAPI\Supporting\CommunicationProvider::getOAuthIdentifier() is unused.
Run PHPStan (4): src/Supporting/CommunicationProvider.php#L536
Method INTERMediator\FileMakerServer\RESTAPI\Supporting\CommunicationProvider::getSupportingProviders() is unused.