From 4d06dc82aa89b80ee4765ea98c06356327b02d36 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sat, 31 Oct 2020 16:02:26 +0100 Subject: [PATCH] Use PHP Console Color 1.0 The `php-parallel-lint/php-console-color` package has tagged a new release. The most notable change is the namespace update. This updates the PHP Console Highlighter package to use the new version of PHP Console Color. Refs: * https://github.com/php-parallel-lint/PHP-Console-Color/releases/tag/v1.0 --- README.md | 2 +- composer.json | 2 +- examples/snippet.php | 2 +- examples/whole_file.php | 2 +- examples/whole_file_line_numbers.php | 2 +- src/Highlighter.php | 14 +++++++------- tests/HighlighterTest.php | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 3d87d64..129f485 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Usage ------- ```php =5.4.0", "ext-tokenizer": "*", - "php-parallel-lint/php-console-color": "^0.2 || ^0.3" + "php-parallel-lint/php-console-color": "^1.0" }, "require-dev": { "phpunit/phpunit": "^4.8.36 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0", diff --git a/examples/snippet.php b/examples/snippet.php index 1bf6ac3..7f3360f 100644 --- a/examples/snippet.php +++ b/examples/snippet.php @@ -1,5 +1,5 @@ createMock('\JakubOnderka\PhpConsoleColor\ConsoleColor') - : $this->getMock('\JakubOnderka\PhpConsoleColor\ConsoleColor'); + ? $this->createMock('\PHP_Parallel_Lint\PhpConsoleColor\ConsoleColor') + : $this->getMock('\PHP_Parallel_Lint\PhpConsoleColor\ConsoleColor'); $mock->expects($this->any()) ->method('apply')