Refactor Profiler frame #164
Annotations
10 errors and 2 warnings
Run Tests:
src/Application.php#L228
src/Application.php:228:22: MissingReturnType: Method Buggregator\Trap\Application::configureFileObserver does not have a return type, expecting void (see https://psalm.dev/050)
|
Run Tests:
src/Application.php#L238
src/Application.php:238:27: ArgumentTypeCoercion: Argument 1 of Buggregator\Trap\Config\FilesObserver::__construct expects non-empty-string, but parent type string provided (see https://psalm.dev/193)
|
Run Tests:
src/Proto/Frame/Profiler.php#L27
src/Proto/Frame/Profiler.php:27:9: MixedAssignment: Unable to determine the type that $data is being assigned to (see https://psalm.dev/032)
|
Run Tests:
src/Proto/Frame/Profiler.php#L29
src/Proto/Frame/Profiler.php:29:59: MixedArgument: Argument 1 of Buggregator\Trap\Proto\Frame\Profiler\Payload::fromArray cannot be mixed, expecting array<array-key, mixed> (see https://psalm.dev/030)
|
Run Tests:
src/Proto/Frame/Profiler/Payload.php#L44
src/Proto/Frame/Profiler/Payload.php:44:16: UnsafeInstantiation: Cannot safely instantiate class Buggregator\Trap\Proto\Frame\Profiler\Payload with "new static" as its constructor might change in child classes (see https://psalm.dev/229)
|
Run Tests:
src/Proto/Frame/Profiler/Payload.php#L45
src/Proto/Frame/Profiler/Payload.php:45:40: MixedArgument: Argument 1 of Buggregator\Trap\Proto\Frame\Profiler\Type::from cannot be mixed, expecting int|string (see https://psalm.dev/030)
|
Run Tests:
src/Proto/Frame/Profiler/Payload.php#L46
src/Proto/Frame/Profiler/Payload.php:46:13: ArgumentTypeCoercion: Argument 2 of Buggregator\Trap\Proto\Frame\Profiler\Payload::__construct expects array{date: int, filename?: non-empty-string, hostname: non-empty-string, ...<array-key, mixed>}, but parent type array<array-key, mixed> provided (see https://psalm.dev/193)
|
Run Tests:
src/Proto/Frame/Profiler/Payload.php#L47
src/Proto/Frame/Profiler/Payload.php:47:13: MixedArgumentTypeCoercion: Argument 3 of Buggregator\Trap\Proto\Frame\Profiler\Payload::__construct expects Closure():array{edges: array<array-key, mixed>, peaks: array<array-key, mixed>}, but parent type pure-Closure():array<array-key, mixed> provided (see https://psalm.dev/194)
|
Run Tests:
src/Proto/Frame/Profiler/Payload.php#L51
src/Proto/Frame/Profiler/Payload.php:51:58: InvalidReturnType: Not all code paths of Buggregator\Trap\Proto\Frame\Profiler\Payload::fromFile end in a return statement, return type Buggregator\Trap\Proto\Frame\Profiler\Payload expected (see https://psalm.dev/011)
|
Run Tests:
src/Proto/Frame/Profiler/Payload.php#L81
src/Proto/Frame/Profiler/Payload.php:81:16: MoreSpecificReturnType: The declared return type 'array{date: int, edges: array<array-key, mixed>, filename?: non-empty-string, hostname: non-empty-string, peaks: array<array-key, mixed>, type: non-empty-string, ...<array-key, mixed>}' for Buggregator\Trap\Proto\Frame\Profiler\Payload::jsonSerialize is more specific than the inferred return type 'array<array-key, mixed>' (see https://psalm.dev/070)
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Get Composer Cache Directory
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
The logs for this run have expired and are no longer available.
Loading