Skip to content

Instantly share code, notes, and snippets.

@TysonAndre
TysonAndre / phan_errors_drupal.txt
Created April 14, 2017 06:03
Phan errors detected by running Phan on drupal (With my fork)
core/includes/batch.inc:144 PhanParamTooMany Call with 1 arg(s) to \_batch_process() which only takes 0 arg(s) defined at core/includes/batch.inc:209
core/includes/batch.inc:333 PhanTypeMismatchReturn Returning type \Symfony\Component\HttpFoundation\RedirectResponse|object but _batch_process() is declared to return array
core/includes/batch.inc:494 PhanUndeclaredMethod Call to undeclared method \Drupal\Core\Form\FormState::mergeOptions
core/includes/batch.inc:496 PhanUndeclaredMethod Call to undeclared method \Drupal\Core\Form\FormState::getOption
core/includes/batch.inc:500 PhanUndeclaredMethod Call to undeclared method \Drupal\Core\Form\FormState::setAbsolute
core/includes/bootstrap.inc:455 PhanAccessMethodInternal Cannot access internal method \Drupal\Core\Render\Markup::create defined at core/lib/Drupal/Component/Render/MarkupTrait.php:34
core/includes/bootstrap.inc:678 PhanUndeclaredConstant Reference to undeclared constant \DRUPAL_TEST_IN_CHILD_SITE
core/includes/common.inc:893 PhanTypeComparisonFromArr
@TysonAndre
TysonAndre / .phan_config.php
Created April 15, 2017 07:29
Phan run of phpunit (using etsy/phan dev-master)
<?php
use \Phan\Issue;
/**
* This configuration will be read and overlayed on top of the
* default configuration. Command line arguments will be applied
* after this file is read.
*
* @see src/Phan/Config.php
@TysonAndre
TysonAndre / .phan_config.php
Created April 17, 2017 04:36
Phan run on symfony (Uses some phan patches that are still in review)
<?php
use \Phan\Issue;
/**
* This configuration will be read and overlayed on top of the
* default configuration. Command line arguments will be applied
* after this file is read.
*
* @see src/Phan/Config.php