Skip to content

Commit c427967

Browse files
committed
fix
1 parent 16017d8 commit c427967

7 files changed

Lines changed: 8 additions & 20 deletions

src/Logs/Logs.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ class Logs
1414
*/
1515
private static $instance;
1616

17-
/**
18-
* Constructor.
19-
*/
2017
private function __construct()
2118
{
2219
}

src/functions.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -217,19 +217,11 @@ function withScope(callable $callback)
217217
return SentrySdk::getCurrentHub()->withScope($callback);
218218
}
219219

220-
/**
221-
* Starts a new context for the current execution context.
222-
*/
223220
function startContext(): void
224221
{
225222
SentrySdk::startContext();
226223
}
227224

228-
/**
229-
* Ends the active context for the current execution context.
230-
*
231-
* @param int|null $timeout The maximum number of seconds to wait while flushing the client transport
232-
*/
233225
function endContext(?int $timeout = null): void
234226
{
235227
SentrySdk::endContext($timeout);

tests/Fixtures/runtime/roadrunner-worker.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,6 @@
7171
}
7272
}
7373

74-
/**
75-
* @param object $worker
76-
* @param object $factory
77-
*
78-
* @return object
79-
*/
8074
function createPsrWorker($worker, $factory)
8175
{
8276
$reflectionClass = new ReflectionClass(PSR7Worker::class);
@@ -88,9 +82,6 @@ function createPsrWorker($worker, $factory)
8882
return $reflectionClass->newInstanceArgs(array_slice($arguments, 0, $requiredParameterCount));
8983
}
9084

91-
/**
92-
* @param object $request
93-
*/
9485
function handleRequest($request): Response
9586
{
9687
$path = $request->getUri()->getPath();

tests/phpt-oom/php84/out_of_memory_fatal_error_increases_memory_limit.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ while (!file_exists($vendor . '/vendor')) {
3232

3333
require $vendor . '/vendor/autoload.php';
3434

35+
error_reporting(E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED);
36+
3537
$options = new Options([
3638
'dsn' => 'http://public@example.com/sentry/1',
3739
]);

tests/phpt/php85/error_handler_captures_fatal_error.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ while (!file_exists($vendor . '/vendor')) {
2929

3030
require $vendor . '/vendor/autoload.php';
3131

32+
error_reporting(E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED);
33+
3234
$transport = new class implements TransportInterface {
3335
public function send(Event $event): Result
3436
{

tests/phpt/php85/fatal_error_integration_captures_fatal_error.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ while (!file_exists($vendor . '/vendor')) {
3131

3232
require $vendor . '/vendor/autoload.php';
3333

34+
error_reporting(E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED);
35+
3436
$transport = new class implements TransportInterface {
3537
public function send(Event $event): Result
3638
{

tests/phpt/php85/fatal_error_integration_respects_error_types_option.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ while (!file_exists($vendor . '/vendor')) {
3131

3232
require $vendor . '/vendor/autoload.php';
3333

34+
error_reporting(E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED);
35+
3436
$transport = new class implements TransportInterface {
3537
public function send(Event $event): Result
3638
{

0 commit comments

Comments
 (0)