ALPHA 3.0.2

This commit is contained in:
TheGamecraft
2018-09-05 11:35:41 -04:00
parent 4dbdc8fd19
commit 8ef8057bfa
771 changed files with 9284 additions and 5857 deletions

0
vendor/nunomaduro/collision/LICENSE.md vendored Normal file → Executable file
View File

View File

@@ -20,7 +20,8 @@
"jakub-onderka/php-console-highlighter": "0.3.*"
},
"require-dev": {
"phpunit/phpunit": "~7.0",
"phpunit/phpunit": "~7.2",
"phpstan/phpstan": "^0.9.2",
"laravel/framework": "5.6.*"
},
"autoload-dev": {

View File

@@ -28,9 +28,7 @@ use NunoMaduro\Collision\Contracts\Adapters\Phpunit\Listener as ListenerContract
class CollisionServiceProvider extends ServiceProvider
{
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
* {@inheritdoc}
*/
protected $defer = true;

View File

@@ -1,7 +1,7 @@
<?php
/*
* This file is part of PhpStorm.
* This file is part of Collision.
*
* (c) Nuno Maduro <enunomaduro@gmail.com>
*

View File

@@ -40,7 +40,7 @@ class Highlighter extends BaseHighlighter implements HighlighterContract
/**
* Creates an instance of the Highlighter.
*
* @param \JakubOnderka\PhpConsoleHighlighter\ConsoleColor|null $color
* @param \JakubOnderka\PhpConsoleColor\ConsoleColor|null $color
*/
public function __construct(ConsoleColor $color = null)
{

View File

@@ -33,7 +33,7 @@ class Provider implements ProviderContract
/**
* Holds an instance of the handler.
*
* @var \Whoops\Handler\HandlerInterface
* @var \NunoMaduro\Collision\Contracts\Handler
*/
protected $handler;

View File

@@ -214,7 +214,7 @@ class Writer implements WriterContract
{
$this->render('at <fg=green>'.$frame->getFile().'</>'.':<fg=green>'.$frame->getLine().'</>');
$content = $this->highlighter->highlight($frame->getFileContents(), (int) $frame->getLine());
$content = $this->highlighter->highlight((string) $frame->getFileContents(), (int) $frame->getLine());
$this->output->writeln($content);