Skip to content

Commit db4df58

Browse files
committed
fix: rename class/files to avoid "illegal byte sequence" error with unzip
In other words: Ben, stop trying to be cute!
1 parent d3a74a4 commit db4df58

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

CHANGELOG.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2121
### Security
2222

2323

24+
## [1.0.2] - 2020-08-25
25+
26+
###
27+
28+
* rename class/files to avoid "illegal byte sequence" error with unzip
29+
30+
2431
## [1.0.1] - 2020-08-25
2532

2633
### Fixed
@@ -35,6 +42,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
3542
* create a REPL plugin for Composer
3643

3744

38-
[Unreleased]: https://github.com/ramsey/composer-repl/compare/1.0.1...HEAD
45+
[Unreleased]: https://github.com/ramsey/composer-repl/compare/1.0.2...HEAD
46+
[1.0.2]: https://github.com/ramsey/composer-repl/compare/1.0.1...1.0.2
3947
[1.0.1]: https://github.com/ramsey/composer-repl/compare/1.0.0...1.0.1
4048
[1.0.0]: https://github.com/ramsey/composer-repl/commits/1.0.0

src/Composer/ReplCommand.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
use Psy\Configuration;
3030
use Psy\Shell;
3131
use Ramsey\Dev\Repl\Process\ProcessFactory;
32+
use Ramsey\Dev\Repl\Psy\ElephpantCommand;
3233
use Ramsey\Dev\Repl\Psy\PhpunitRunCommand;
3334
use Ramsey\Dev\Repl\Psy\PhpunitTestCommand;
34-
use Ramsey\Dev\Repl\Psy\🐘Command;
3535
use Symfony\Component\Console\Input\InputInterface;
3636
use Symfony\Component\Console\Output\OutputInterface;
3737

@@ -109,7 +109,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
109109
$this->processFactory,
110110
$composer,
111111
));
112-
$shell->add(new 🐘Command());
112+
$shell->add(new ElephpantCommand());
113113

114114
return $shell->run();
115115
}

src/Psy/🐘Command.php src/Psy/ElephpantCommand.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
use Symfony\Component\Console\Input\InputInterface;
2727
use Symfony\Component\Console\Output\OutputInterface;
2828

29-
// phpcs:ignore Squiz.Classes.ValidClassName.NotCamelCaps
30-
class 🐘Command extends Command
29+
class ElephpantCommand extends Command
3130
{
3231
protected function configure(): void
3332
{

tests/Psy/🐘CommandTest.php tests/Psy/ElephpantCommandTest.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@
55
namespace Ramsey\Test\Dev\Repl\Psy;
66

77
use Mockery\MockInterface;
8-
use Ramsey\Dev\Repl\Psy\🐘Command;
8+
use Ramsey\Dev\Repl\Psy\ElephpantCommand;
99
use Ramsey\Test\Dev\Repl\RamseyTestCase;
1010
use Symfony\Component\Console\Input\StringInput;
1111
use Symfony\Component\Console\Output\OutputInterface;
1212

13-
// phpcs:ignore Squiz.Classes.ValidClassName.NotCamelCaps
14-
class 🐘CommandTest extends RamseyTestCase
13+
class ElephpantCommandTest extends RamseyTestCase
1514
{
1615
public function testRun(): void
1716
{
@@ -21,7 +20,7 @@ public function testRun(): void
2120
$output = $this->mockery(OutputInterface::class);
2221
$output->shouldReceive('writeln')->once();
2322

24-
$command = new 🐘Command();
23+
$command = new ElephpantCommand();
2524

2625
$this->assertSame('🐘', $command->getName());
2726
$this->assertSame(['elephpant'], $command->getAliases());

0 commit comments

Comments
 (0)