tideways / ext-tideways-stubs
IDE stubs for Tideways Profiler PHP extension
v5.6.0.1
2023-10-20 18:10 UTC
README
Install with
composer require --dev tideways/ext-tideways-stubs
PHPStan
The stubs can be used to improve the PHPStan analysis when using classes from the Tideways extension. In order to do so, add the stub to your phpstan.neon:
parameters: stubFiles: - vendor/tideways/ext-tideways-stubs/stubs/Tideways.php
See: https://phpstan.org/user-guide/stub-files
However, if you want to be able to run PHPStan even without the tideways extension installed, add the stub file to scanFiles instead.
parameters: scanFiles: - vendor/tideways/ext-tideways-stubs/stubs/Tideways.php