Skip to content

Commit e68a413

Browse files
authored
Fix PHPStan errors (#253)
1 parent 2341b28 commit e68a413

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

‎src/Package_Command.php‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1743,12 +1743,6 @@ private function register_revert_shutdown_function( $json_path, $composer_backup
17431743
$revert_fail_msg = "Failed to revert composer.json.\n";
17441744
$memory_msg = "WP-CLI ran out of memory. Please see https://bit.ly/wpclimem for further help.\n";
17451745
$memory_string = 'Allowed memory size of';
1746-
$error_array = [
1747-
'type' => 42,
1748-
'message' => 'Some random dummy string to take up memory',
1749-
'file' => 'Another random string, which would be a filename this time',
1750-
'line' => 314,
1751-
];
17521746

17531747
register_shutdown_function(
17541748
static function () use (
@@ -1758,8 +1752,7 @@ static function () use (
17581752
$revert_msg,
17591753
$revert_fail_msg,
17601754
$memory_msg,
1761-
$memory_string,
1762-
$error_array
1755+
$memory_string
17631756
) {
17641757
if ( $revert ) {
17651758
if ( false !== file_put_contents( $json_path, $composer_backup ) ) {

0 commit comments

Comments
 (0)