From 7b3329cda9306b0add848578c343ae8f2d8c8534 Mon Sep 17 00:00:00 2001 From: Christopher Georg Date: Tue, 3 May 2022 10:57:29 +0200 Subject: [PATCH] feat: remove unused language_version --- Payload/Generator.php | 2 -- Tests/Payload/GeneratorTest.php | 4 ---- 2 files changed, 6 deletions(-) diff --git a/Payload/Generator.php b/Payload/Generator.php index ba074a4..0aad53a 100755 --- a/Payload/Generator.php +++ b/Payload/Generator.php @@ -29,7 +29,6 @@ public function getExceptionPayload(\Exception $exception): array 'body' => [], 'framework' => Kernel::VERSION, 'server' => $this->getServerInfo(), - 'language_version' => PHP_VERSION, 'request' => $this->getRequestInfo(), 'environment' => $this->getKernel()->getEnvironment(), ]; @@ -62,7 +61,6 @@ public function getErrorPayload(int $code, string $message, string $file, int $l 'request' => $this->getRequestInfo(), 'environment' => $this->getKernel()->getEnvironment(), 'framework' => Kernel::VERSION, - 'language_version' => PHP_VERSION, 'server' => $this->getServerInfo(), ]; diff --git a/Tests/Payload/GeneratorTest.php b/Tests/Payload/GeneratorTest.php index b801905..b3f0cb3 100755 --- a/Tests/Payload/GeneratorTest.php +++ b/Tests/Payload/GeneratorTest.php @@ -136,7 +136,6 @@ public function testGetErrorPayload(): void $this->assertArrayHasKey('request', $payload); $this->assertArrayHasKey('environment', $payload); $this->assertArrayHasKey('framework', $payload); - $this->assertArrayHasKey('language_version', $payload); $this->assertArrayHasKey('server', $payload); $body = ['trace' => $item($code, $msg, $file, $line)]; @@ -145,7 +144,6 @@ public function testGetErrorPayload(): void $this->assertEquals($requestInfo, $payload['request']); $this->assertEquals(static::$kernel->getEnvironment(), $payload['environment']); $this->assertEquals(Kernel::VERSION, $payload['framework']); - $this->assertEquals(PHP_VERSION, $payload['language_version']); $this->assertEquals($serverInfo, $payload['server']); } @@ -176,7 +174,6 @@ public function testGetExceptionPayload(): void $this->assertArrayHasKey('request', $payload); $this->assertArrayHasKey('environment', $payload); $this->assertArrayHasKey('framework', $payload); - $this->assertArrayHasKey('language_version', $payload); $this->assertArrayHasKey('server', $payload); $body = ['trace_chain' => $chain($exception)]; @@ -185,7 +182,6 @@ public function testGetExceptionPayload(): void $this->assertEquals($requestInfo, $payload['request']); $this->assertEquals(static::$kernel->getEnvironment(), $payload['environment']); $this->assertEquals(Kernel::VERSION, $payload['framework']); - $this->assertEquals(PHP_VERSION, $payload['language_version']); $this->assertEquals($serverInfo, $payload['server']); }