Skip to content

Commit

Permalink
don't use anonymous class which causes segfaults with pcov
Browse files Browse the repository at this point in the history
  • Loading branch information
mikey179 committed Mar 2, 2020
1 parent fb7006f commit 9696af3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 28 deletions.
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions src/main/php/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ function lastErrorMessage(string $default = ''): string
*/
function copy(InputStream $from): Copier
{
return new class($from) extends Copier { };
return new Copier($from);
}

/**
* @internal
* @since 8.1.0
*/
abstract class Copier
final class Copier
{
private $source;

Expand Down

0 comments on commit 9696af3

Please sign in to comment.