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

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);