Add Composer autoloading functions and PHPStan for testing

This commit is contained in:
Alex Cabal 2019-02-26 13:03:45 -06:00
parent e198c4db65
commit f5d7d4e02a
1518 changed files with 169063 additions and 30 deletions

24
lib/CoreFunctions.php Normal file
View file

@ -0,0 +1,24 @@
<?
// Auto-included by Composer in composer.json
// These functions are broken out of Core.php to satisfy PHPStan
// Convenience alias of var_dump.
function vd($var){
var_dump($var);
}
// var_dump($var) then die().
function vdd($var){
var_dump($var);
die();
}
// var_dump into a string.
function vds($var){
ob_start();
var_dump($var);
$str = ob_get_contents();
ob_end_clean();
return $str;
}
?>