Vonage / vonage-php-sdk-core

Vonage REST API client for PHP. API support for SMS, Voice, Text-to-Speech, Numbers, Verify (2FA) and more.
https://developer.vonage.com/
Apache License 2.0
916 stars 180 forks source link

Reintroduce phpstan, add baseline #433

Closed SecondeJK closed 1 year ago

SecondeJK commented 1 year ago

This PR adds the basic configuration for PHPStan and the baseline file.

Description

Baseline is set to 0, the config specifies that we only want PHPStan to work with the src folder (tests do weird and wonderful things that are -supposed- to be bad)

Motivation and Context

Code Quality evolution of the Vonage PHP Library with the next step to run in the pipeline for PRs

How Has This Been Tested?

Tests not relevent

Example Output or Screenshots (if appropriate):

Types of changes

Checklist:

codecov-commenter commented 1 year ago

Codecov Report

Merging #433 (223cc66) into main (9d8189e) will not change coverage. The diff coverage is n/a.

@@            Coverage Diff            @@
##               main     #433   +/-   ##
=========================================
  Coverage     78.86%   78.86%           
  Complexity     2322     2322           
=========================================
  Files           218      218           
  Lines          6251     6251           
=========================================
  Hits           4930     4930           
  Misses         1321     1321           

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more