Skip to content

Allow codespaces in forks to access upstream (GEWIS/gewisdb and GEWIS/gewisweb) #335

Allow codespaces in forks to access upstream (GEWIS/gewisdb and GEWIS/gewisweb)

Allow codespaces in forks to access upstream (GEWIS/gewisdb and GEWIS/gewisweb) #335

Triggered via pull request January 25, 2025 12:19
Status Success
Total duration 1m 20s
Artifacts

static-analysis.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
PossiblyUndefinedArrayOffset: module/Checker/src/Model/TueData.php#L165
module/Checker/src/Model/TueData.php:165:25: PossiblyUndefinedArrayOffset: Possibly undefined array key $this->data['registrations'] on array{lastupdated?: null|string, mail?: string, name?: array{given?: string, initials?: string, last?: string}, registrations?: array<array-key, array{dept: string, generation: int, study: string}>, sAMAccountName?: string} (see https://psalm.dev/167)
InvalidReturnType: module/Database/src/Controller/QueryController.php#L21
module/Database/src/Controller/QueryController.php:21:36: InvalidReturnType: The declared return type 'Laminas\View\Model\ViewModel' for Database\Controller\QueryController::indexAction is incorrect, got 'Laminas\Http\Response|Laminas\View\Model\ViewModel' (see https://psalm.dev/011)
InvalidReturnStatement: module/Database/src/Controller/QueryController.php#L43
module/Database/src/Controller/QueryController.php:43:24: InvalidReturnStatement: The inferred type 'Laminas\Http\Response' does not match the declared return type 'Laminas\View\Model\ViewModel' for Database\Controller\QueryController::indexAction (see https://psalm.dev/128)
PossiblyInvalidArrayOffset: module/Database/src/Form/OrganRegulation.php#L189
module/Database/src/Form/OrganRegulation.php:189:17: PossiblyInvalidArrayOffset: Cannot access value on variable $option using offset value of 'value', expecting int (see https://psalm.dev/116)
PossiblyUndefinedArrayOffset: module/Database/src/Service/Meeting.php#L599
module/Database/src/Service/Meeting.php:599:24: PossiblyUndefinedArrayOffset: Possibly undefined array key $decision[$subDecisionType] on array{discharges?: list<Database\Model\SubDecision\Installation>|mixed, installations: list<array{function: mixed, member: Database\Model\Member}>, meeting: Database\Model\Meeting, reappointments?: list<Database\Model\SubDecision\Installation>|mixed, subdecision: Database\Model\SubDecision\Foundation, ...<array-key, mixed>} (see https://psalm.dev/167)
UndefinedMagicPropertyFetch: module/Database/src/Service/Stripe.php#L293
module/Database/src/Service/Stripe.php:293:23: UndefinedMagicPropertyFetch: Magic instance property Stripe\StripeObject::$object is not defined (see https://psalm.dev/218)
UndefinedMagicPropertyFetch: module/Database/src/Service/Stripe.php#L311
module/Database/src/Service/Stripe.php:311:20: UndefinedMagicPropertyFetch: Magic instance property Stripe\StripeObject::$object is not defined (see https://psalm.dev/218)
UndefinedMagicPropertyFetch: module/Database/src/Service/Stripe.php#L379
module/Database/src/Service/Stripe.php:379:34: UndefinedMagicPropertyFetch: Magic instance property Stripe\StripeObject::$recovery is not defined (see https://psalm.dev/218)
NoValue: module/Report/src/Listener/DatabaseUpdateListener.php#L88
module/Report/src/Listener/DatabaseUpdateListener.php:88:17: NoValue: All possible types for this assignment were invalidated - This may be dead code (see https://psalm.dev/179)
InvalidNullableReturnType: module/Report/src/Service/Meeting.php#L422
module/Report/src/Service/Meeting.php:422:62: InvalidNullableReturnType: The declared return type 'Report\Model\Member' for Report\Service\Meeting::findMember is not nullable, but 'Report\Model\Member|null' contains null (see https://psalm.dev/144)
Psalm
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHPStan
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636