Use PHPStan for static analysis see [this example](https://github.com/GoogleCloudPlatform/php-docs-samples/blob/master/.github/workflows/lint.yml)