Skip to content

Commit

Permalink
Merge pull request #77 from Chris53897/feature/remove-unused-language…
Browse files Browse the repository at this point in the history
…_version

Feature/remove unused language version
  • Loading branch information
danielmorell authored May 16, 2022
2 parents efb4d19 + 7b3329c commit f1b62d5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions Payload/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
];
Expand Down Expand Up @@ -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(),
];

Expand Down
4 changes: 0 additions & 4 deletions Tests/Payload/GeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)];
Expand All @@ -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']);
}

Expand Down Expand Up @@ -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)];
Expand All @@ -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']);
}

Expand Down

0 comments on commit f1b62d5

Please sign in to comment.