Maintenance: Started work for PHPStan Level 4 #11631
Annotations
10 errors and 1 warning
|
build:
app/Exports/ExportFormatter.php#L211
Offset 0 on array{list<string>, list<non-empty-string>, list<string>, list<non-empty-string>} in isset() always exists and is not nullable.
|
|
build:
app/Entities/Tools/PermissionsUpdater.php#L50
Offset 'role_permissions' on non-empty-array on left side of ?? always exists and is not nullable.
|
|
build:
app/Entities/Tools/PageContent.php#L362
Expression on left side of ?? is not nullable.
|
|
build:
app/Entities/Tools/EntityCover.php#L36
Strict comparison using === between int and null will always evaluate to false.
|
|
build:
app/Entities/Tools/EntityCover.php#L28
Strict comparison using !== between int and null will always evaluate to true.
|
|
build:
app/Entities/Repos/PageRepo.php#L63
Using nullsafe method call on non-nullable type BookStack\Entities\Models\Book. Use -> instead.
|
|
build:
app/Entities/Models/Entity.php#L477
Match expression does not handle remaining value: string
|
|
build:
app/Console/Commands/CopyShelfPermissionsCommand.php#L50
Result of && is always false.
|
|
build:
app/Console/Commands/CopyShelfPermissionsCommand.php#L50
Negated boolean expression is always false.
|
|
build:
app/Console/Commands/AssignSortRuleCommand.php#L35
Expression on left side of ?? is not nullable.
|
|
build
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, 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/
|