Skip to content

refactor: rename RPGPlayground to RPGKernel across the codebase #54

refactor: rename RPGPlayground to RPGKernel across the codebase

refactor: rename RPGPlayground to RPGKernel across the codebase #54

Triggered via push April 6, 2026 19:56
Status Failure
Total duration 17s
Artifacts

ci.yml

on: push
Mago Analyse
9s
Mago Analyse
PHPUnit Tests
12s
PHPUnit Tests
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 5 warnings
unhandled-thrown-type: src/Domain/Entities/Item/InventoryItem.php#L16
Potentially unhandled exception `InvalidArgumentException` in `RPGKernel\Domain\Entities\Item\InventoryItem::__construct`. >Exception may be thrown here >This method does not declare that it throws `InvalidArgumentException` All possible exceptions must be caught or declared in a `@throws` tag in the method's docblock. Help: You can add `@throws InvalidArgumentException` to the method's docblock or wrap the throwing code in a `try-catch` block.
missing-template-parameter: src/Domain/ValueObjects/Character/Statistics.php#L9
Too few template arguments for `RPGKernel\Domain\ValueObjects\Bundle`: expected 1, but found 0. >Too few template arguments provided here when `RPGKernel\Domain\ValueObjects\Character\Statistics` extends `RPGKernel\Domain\ValueObjects\Bundle` >Declaration of `RPGKernel\Domain\ValueObjects\Character\Statistics` is here >`RPGKernel\Domain\ValueObjects\Bundle` is defined with 1 template parameters Help: Provide all 1 required template arguments in the `@extends` docblock tag for `RPGKernel\Domain\ValueObjects\Character\Statistics`.
unhandled-thrown-type: src/Domain/ValueObjects/Durability.php#L14
Potentially unhandled exception `InvalidArgumentException` in `RPGKernel\Domain\ValueObjects\Durability::__construct`. >Exception may be thrown here >This method does not declare that it throws `InvalidArgumentException` All possible exceptions must be caught or declared in a `@throws` tag in the method's docblock. Help: You can add `@throws InvalidArgumentException` to the method's docblock or wrap the throwing code in a `try-catch` block.
unhandled-thrown-type: src/Domain/Entities/Inventory.php#L133
Potentially unhandled exception `InvalidArgumentException` in `RPGKernel\Domain\Entities\Inventory::has`. >Exception may be thrown here >This method does not declare that it throws `InvalidArgumentException` All possible exceptions must be caught or declared in a `@throws` tag in the method's docblock. Help: You can add `@throws InvalidArgumentException` to the method's docblock or wrap the throwing code in a `try-catch` block.
unhandled-thrown-type: src/Domain/Entities/Inventory.php#L76
Potentially unhandled exception `InvalidArgumentException` in `RPGKernel\Domain\Entities\Inventory::remove`. >Exception may be thrown here >This method does not declare that it throws `InvalidArgumentException` All possible exceptions must be caught or declared in a `@throws` tag in the method's docblock. Help: You can add `@throws InvalidArgumentException` to the method's docblock or wrap the throwing code in a `try-catch` block.
unhandled-thrown-type: src/Domain/Entities/Inventory.php#L56
Potentially unhandled exception `InvalidArgumentException` in `RPGKernel\Domain\Entities\Inventory::add`. >Exception may be thrown here >Exception may be thrown here >Exception may be thrown here >This method does not declare that it throws `InvalidArgumentException` All possible exceptions must be caught or declared in a `@throws` tag in the method's docblock. Help: You can add `@throws InvalidArgumentException` to the method's docblock or wrap the throwing code in a `try-catch` block.
missing-return-statement: src/Domain/Entities/Inventory.php#L40
Missing return statement in function 'checkitemsweight' >This function is declared to return 'rpgkernel\domain\entities\inventory&static'... >...but this path can exit without returning a value. A function that does not explicitly return a value will implicitly return `null`. Help: Add a `return` statement that provides a value of type 'rpgkernel\domain\entities\inventory&static' to all paths, or change the function's return type to 'rpgkernel\domain\entities\inventory&static|null' and return `null` explicitly.
docblock-type-mismatch: src/Domain/Entities/Inventory.php#L40
Docblock return type `rpgkernel\domain\entities\inventory&static` is incompatible with native return type `void`. >Native return type is `void`... >...but docblock declares `rpgkernel\domain\entities\inventory&static` The docblock return type must be compatible with the native return type declaration. Help: Either change the docblock return type to match `void`, or update the native return type to be compatible with `rpgkernel\domain\entities\inventory&static`.
unhandled-thrown-type: src/Domain/Entities/Item.php#L28
Potentially unhandled exception `InvalidArgumentException` in `RPGKernel\Domain\Entities\Item::__construct`. >Exception may be thrown here >Exception may be thrown here >This method does not declare that it throws `InvalidArgumentException` All possible exceptions must be caught or declared in a `@throws` tag in the method's docblock. Help: You can add `@throws InvalidArgumentException` to the method's docblock or wrap the throwing code in a `try-catch` block.
missing-template-parameter: src/Domain/ValueObjects/Attributes.php#L9
Too few template arguments for `RPGKernel\Domain\ValueObjects\Bundle`: expected 1, but found 0. >Too few template arguments provided here when `RPGKernel\Domain\ValueObjects\Attributes` extends `RPGKernel\Domain\ValueObjects\Bundle` >Declaration of `RPGKernel\Domain\ValueObjects\Attributes` is here >`RPGKernel\Domain\ValueObjects\Bundle` is defined with 1 template parameters Help: Provide all 1 required template arguments in the `@extends` docblock tag for `RPGKernel\Domain\ValueObjects\Attributes`.
Mago Analyse
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
impossible-condition: src/Domain/Entities/Inventory.php#L132
This condition (type `false`) will always evaluate to false. >Expression of type `false` is always falsy Because this condition is always false, the code block it controls will never be executed. Help: Check the logic of this expression. If the code block is intended to be unreachable, consider removing it. Otherwise, revise the condition.
unsafe-instantiation: src/Domain/ValueObjects/Bundle.php#L34
Unsafe `new static()`: constructor of `RPGKernel\Domain\ValueObjects\Bundle` is not final and its signature might change in child classes, potentially leading to runtime errors. >`new static()` used here >Constructor defined here could be overridden with an incompatible signature Help: Ensure constructor signature consistency across inheritance (e.g., using `@consistent-constructor` if applicable) or mark the class/constructor as final.
unsafe-instantiation: src/Domain/ValueObjects/Bundle.php#L25
Unsafe `new static()`: constructor of `RPGKernel\Domain\ValueObjects\Bundle` is not final and its signature might change in child classes, potentially leading to runtime errors. >`new static()` used here >Constructor defined here could be overridden with an incompatible signature Help: Ensure constructor signature consistency across inheritance (e.g., using `@consistent-constructor` if applicable) or mark the class/constructor as final.
PHPUnit Tests
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/