Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

/*
$global_error = false;
set_error_handler( function ( $errno, $errstr, $errfile, $errline ) use ( &$global_error ) {
$global_error = true;
if ( E_DEPRECATED === $errno ) {
return true;
}

$errors = [ 'E_NONE', 'E_ERROR', 'E_WARNING', 'E_PARSE', 'E_NOTICE', 'E_CORE_ERROR', 'E_CORE_WARNING', 'E_COMPILE_ERROR' ];

echo "\e[33m{$errors[ $errno ]}\e[90m:\e[31m{$errstr}\e[m\n";
echo "\e[90mat \e[34m{$errfile}\e[90m:\e[33m{$errline}\e[m\n";
echo "\e[90m";
debug_print_backtrace();
echo "\e[m\n";

return true;
}, E_ALL );
*/

require __DIR__ . '/vendor/autoload.php';

class WP_CLI_Command {}

class WP_CLI {
public static function line() {}
}

require __DIR__ . '/lib/class-command.php';
foreach ( glob( __DIR__ . '/lib/*.php' ) as $import ) {
require_once $import;
}
12 changes: 9 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,23 @@
"support" : {
"issues": "https://github.com/WordPress/phpdoc-parser/issues"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/dmsnell/Reflection.git"
}
],
"require" : {
"php" : ">=5.4",
"php" : ">=7.4",
"composer/installers" : "~1.0",
"phpdocumentor/reflection" : "~3.0",
"phpdocumentor/reflection" : "dev-fix/update-parser",
"erusev/parsedown" : "~1.7",
"scribu/lib-posts-to-posts": "dev-master@dev",
"scribu/scb-framework" : "dev-master@dev",
"psr/log" : "~1.0"
},
"require-dev" : {
"phpunit/phpunit": "^7",
"phpunit/phpunit": "^8",
"spatie/phpunit-watcher": "^1.23",
"yoast/phpunit-polyfills": "^1.0"
},
Expand Down
Loading
Loading