bshaffer / oauth2-server-php

A library for implementing an OAuth2 Server in php
http://bshaffer.github.io/oauth2-server-php-docs
MIT License
3.26k stars 950 forks source link

PHPStan level 0 #1022

Closed snapshotpl closed 1 year ago

bshaffer commented 2 years ago

The tests are failing because phpstan is not compatible with 7.1. We don't need it to be, as we only run it on one PHP version. So we should remove it from the dev dependencies and add phpstan at test time so that we don't get the PHP 7.1 error. Something like:

run: |
  composer require phpstan/phpstan
  vendor/bin/phpstan