PHP code example of mglaman / phpstan-drupal
1. Go to this page and download the library: Download mglaman/phpstan-drupal library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mglaman / phpstan-drupal example snippets
$node = \Drupal::entityTypeManager()->getStorage('node')->create(['type' => 'page', 'title' => 'foo']);
parameters:
excludePaths:
- *Test.php
- *TestBase.php