webdevask.com

Menu

  • Home
  • New
  • Add question

php - How can I have phpstan find my custom extension class?

View Original

one text

Solution:

The extension class needs to be loaded in runtime. You can achieve that in two ways:

  1. Make the class available for the Composer autoloader. It's usually sufficient to configure section of your composer.json.

  2. Create a file called something like phpstan-autoload.php in which you require_once the file with the extension class. And pass the path to the phpstan-autoload.php file as option on the command line when running PHPStan.

Source

See also:

  • php สร้าง Google ชีตจากบัญชีบริการ

  • php - Laravel 8.0 Installation Failed

  • javascript - How to include HTML data (tags) as value in "arrayToDataTable" of Google Pie Chart?

  • how to Grouping array in php

  • php - vender folder from my laravel project has more 1k error

© 2021
E-mail: contact@webdevask.com
Back to top