feature: attendance mode #533
Annotations
20 errors and 1 warning
Run Psalm:
module/Activity/src/Controller/AdminController.php#L578
module/Activity/src/Controller/AdminController.php:578:27: UndefinedMethod: Method Activity\Mapper\Signup::getPresent does not exist (see https://psalm.dev/022)
|
Run Psalm:
module/Activity/src/Controller/AdminController.php#L582
module/Activity/src/Controller/AdminController.php:582:36: UndefinedMethod: Method Activity\Mapper\Signup::getId does not exist (see https://psalm.dev/022)
|
Run Psalm:
module/Activity/src/Controller/AdminController.php#L585
module/Activity/src/Controller/AdminController.php:585:30: InvalidArgument: Argument 1 of Laminas\View\Model\JsonModel::__construct expects ArrayAccess<string, mixed>|iterable<string, mixed>|null, but list<mixed> provided (see https://psalm.dev/004)
|
Run Psalm:
module/Activity/src/Model/Signup.php#L144
module/Activity/src/Model/Signup.php:144:16: InvalidReturnType: The declared return type 'array{activity_id: int, createdAt: string, fieldValues: array<array-key, array{id: int, option: array{id: int, value: array{valueEN: null|string, valueNL: null|string}}|null, value: null|string}>, id: int, present: bool, signupList_id: int, updatedAt: string}' for Activity\Model\Signup::toGdprArray is incorrect, got 'array{activity_id: int|null, createdAt: string, fieldValues: array<array-key, array{id: int, option: array{id: int, value: array{valueEN: null|string, valueNL: null|string}}|null, value: null|string}>, id: int|null, signupList_id: int|null, updatedAt: string}' (see https://psalm.dev/011)
|
Run Psalm:
module/Activity/src/Model/Signup.php#L154
module/Activity/src/Model/Signup.php:154:16: InvalidReturnStatement: The inferred type 'array{activity_id: int|null, createdAt: string, fieldValues: array<array-key, array{id: int, option: array{id: int, value: array{valueEN: null|string, valueNL: null|string}}|null, value: null|string}>, id: int|null, signupList_id: int|null, updatedAt: string}' does not match the declared return type 'array{activity_id: int, createdAt: string, fieldValues: array<array-key, array{id: int, option: array{id: int, value: array{valueEN: null|string, valueNL: null|string}}|null, value: null|string}>, id: int, present: bool, signupList_id: int, updatedAt: string}' for Activity\Model\Signup::toGdprArray (see https://psalm.dev/128)
|
Run Psalm:
module/Activity/src/Model/SignupList.php#L329
module/Activity/src/Model/SignupList.php:329:16: InvalidReturnType: The declared return type 'array{closeDate: DateTime, displaySubscribedNumber: bool, fields: array<array-key, array{id: int, maximumValue: int|null, minimumValue: int|null, name: null|string, nameEn: null|string, options: array<array-key, null|string>, optionsEn: array<array-key, null|string>, sensitive: bool, type: int}>, id: int, limitedCapacity: bool, name: null|string, nameEn: null|string, onlyGEWIS: bool, openDate: DateTime, presenceTaken: bool}' for Activity\Model\SignupList::toArray is incorrect, got 'array{closeDate: DateTime, displaySubscribedNumber: bool, fields: list{0?: array{id: int, maximumValue: int|null, minimumValue: int|null, name: null|string, nameEn: null|string, options: array<array-key, null|string>, optionsEn: array<array-key, null|string>, sensitive: bool, type: int}, ...<array{id: int, maximumValue: int|null, minimumValue: int|null, name: null|string, nameEn: null|string, options: array<array-key, null|string>, optionsEn: array<array-key, null|string>, sensitive: bool, type: int}>}, id: int|null, limitedCapacity: bool, name: null|string, nameEn: null|string, onlyGEWIS: bool, openDate: DateTime}' (see https://psalm.dev/011)
|
Run Psalm:
module/Activity/src/Model/SignupList.php#L338
module/Activity/src/Model/SignupList.php:338:16: InvalidReturnStatement: The inferred type 'array{closeDate: DateTime, displaySubscribedNumber: bool, fields: list{0?: array{id: int, maximumValue: int|null, minimumValue: int|null, name: null|string, nameEn: null|string, options: array<array-key, null|string>, optionsEn: array<array-key, null|string>, sensitive: bool, type: int}, ...<array{id: int, maximumValue: int|null, minimumValue: int|null, name: null|string, nameEn: null|string, options: array<array-key, null|string>, optionsEn: array<array-key, null|string>, sensitive: bool, type: int}>}, id: int|null, limitedCapacity: bool, name: null|string, nameEn: null|string, onlyGEWIS: bool, openDate: DateTime}' does not match the declared return type 'array{closeDate: DateTime, displaySubscribedNumber: bool, fields: array<array-key, array{id: int, maximumValue: int|null, minimumValue: int|null, name: null|string, nameEn: null|string, options: array<array-key, null|string>, optionsEn: array<array-key, null|string>, sensitive: bool, type: int}>, id: int, limitedCapacity: bool, name: null|string, nameEn: null|string, onlyGEWIS: bool, openDate: DateTime, presenceTaken: bool}' for Activity\Model\SignupList::toArray (see https://psalm.dev/128)
|
Run Psalm:
module/Activity/src/Model/SignupList.php#L352
module/Activity/src/Model/SignupList.php:352:16: InvalidReturnType: The declared return type 'array{closeDate: string, displaySubscribedNumber: bool, fields: array<array-key, array{id: int, maximumValue: int|null, minimumValue: int|null, name: array{valueEN: null|string, valueNL: null|string}, options: array<array-key, array{id: int, value: array{valueEN: null|string, valueNL: null|string}}>|null, sensitive: bool, type: int}>, id: int, limitedCapacity: bool, name: array{valueEN: null|string, valueNL: null|string}, onlyGEWIS: bool, openDate: string, presenceTaken: bool}' for Activity\Model\SignupList::toGdprArray is incorrect, got 'array{closeDate: string, displaySubscribedNumber: bool, fields: array<array-key, array{id: int, maximumValue: int|null, minimumValue: int|null, name: array{valueEN: null|string, valueNL: null|string}, options: array<array-key, array{id: int, value: array{valueEN: null|string, valueNL: null|string}}>|null, sensitive: bool, type: int}>, id: int|null, limitedCapacity: bool, name: array{valueEN: null|string, valueNL: null|string}, onlyGEWIS: bool, openDate: string}' (see https://psalm.dev/011)
|
Run Psalm:
module/Activity/src/Model/SignupList.php#L362
module/Activity/src/Model/SignupList.php:362:16: InvalidReturnStatement: The inferred type 'array{closeDate: string, displaySubscribedNumber: bool, fields: array<array-key, array{id: int, maximumValue: int|null, minimumValue: int|null, name: array{valueEN: null|string, valueNL: null|string}, options: array<array-key, array{id: int, value: array{valueEN: null|string, valueNL: null|string}}>|null, sensitive: bool, type: int}>, id: int|null, limitedCapacity: bool, name: array{valueEN: null|string, valueNL: null|string}, onlyGEWIS: bool, openDate: string}' does not match the declared return type 'array{closeDate: string, displaySubscribedNumber: bool, fields: array<array-key, array{id: int, maximumValue: int|null, minimumValue: int|null, name: array{valueEN: null|string, valueNL: null|string}, options: array<array-key, array{id: int, value: array{valueEN: null|string, valueNL: null|string}}>|null, sensitive: bool, type: int}>, id: int, limitedCapacity: bool, name: array{valueEN: null|string, valueNL: null|string}, onlyGEWIS: bool, openDate: string, presenceTaken: bool}' for Activity\Model\SignupList::toGdprArray (see https://psalm.dev/128)
|
Run Psalm
Process completed with exit code 2.
|
Generate Psalm Baseline:
module/Activity/src/Controller/ActivityController.php#L88
module/Activity/src/Controller/ActivityController.php:88:75: PossiblyFalseReference: Cannot call method getId on possibly false value (see https://psalm.dev/105)
|
Generate Psalm Baseline:
module/Activity/src/Controller/AdminController.php#L151
module/Activity/src/Controller/AdminController.php:151:51: PossiblyFalseReference: Cannot call method getNew on possibly false value (see https://psalm.dev/105)
|
Generate Psalm Baseline:
module/Activity/src/Controller/ApiController.php#L41
module/Activity/src/Controller/ApiController.php:41:30: InvalidArgument: Argument 1 of Laminas\View\Model\JsonModel::__construct expects ArrayAccess<string, mixed>|iterable<string, mixed>|null, but list{0?: array{beginTime: DateTime, categories: array<array-key, array{id: int, name: null|string, nameEn: null|string}>, company: Company\Model\Company|null, costs: null|string, costsEn: null|string, description: null|string, descriptionEn: null|string, endTime: DateTime, id: int, isMyFuture: bool, location: null|string, locationEn: null|string, name: null|string, nameEn: null|string, organ: Decision\Model\Organ|null, requireGEFLITST: bool, signupLists: array<array-key, array{closeDate: DateTime, displaySubscribedNumber: bool, fields: array<array-key, array{id: int, maximumValue: int|null, minimumValue: int|null, name: null|string, nameEn: null|string, options: array<array-key, null|string>, optionsEn: array<array-key, null|string>, sensitive: bool, type: int}>, id: int, limitedCapacity: bool, name: null|string, nameEn: null|string, onlyGEWIS: bool, openDate: DateTime}>}, ...<array{beginTime: DateTime, categories: array<array-key, array{id: int, name: null|string, nameEn: null|string}>, company: Company\Model\Company|null, costs: null|string, costsEn: null|string, description: null|string, descriptionEn: null|string, endTime: DateTime, id: int, isMyFuture: bool, location: null|string, locationEn: null|string, name: null|string, nameEn: null|string, organ: Decision\Model\Organ|null, requireGEFLITST: bool, signupLists: array<array-key, array{closeDate: DateTime, displaySubscribedNumber: bool, fields: array<array-key, array{id: int, maximumValue: int|null, minimumValue: int|null, name: null|string, nameEn: null|string, options: array<array-key, null|string>, optionsEn: array<array-key, null|string>, sensitive: bool, type: int}>, id: int, limitedCapacity: bool, name: null|string, nameEn: null|string, onlyGEWIS: bool, openDate: DateTime}>}>} provided (see https://psalm.dev/004)
|
Generate Psalm Baseline:
module/Activity/src/Form/ActivityCalendarPeriod.php#L19
module/Activity/src/Form/ActivityCalendarPeriod.php:19:7: MissingTemplateParam: Activity\Form\ActivityCalendarPeriod has missing template params when extending Laminas\Form\Form, expecting 1 (see https://psalm.dev/182)
|
Generate Psalm Baseline:
module/Activity/src/Form/ActivityCalendarProposal.php#L21
module/Activity/src/Form/ActivityCalendarProposal.php:21:7: MissingTemplateParam: Activity\Form\ActivityCalendarProposal has missing template params when extending Laminas\Form\Form, expecting 1 (see https://psalm.dev/182)
|
Generate Psalm Baseline:
module/Activity/src/Form/Signup.php#L26
module/Activity/src/Form/Signup.php:26:7: MissingTemplateParam: Activity\Form\Signup has missing template params when extending Laminas\Form\Form, expecting 1 (see https://psalm.dev/182)
|
Generate Psalm Baseline:
module/Activity/src/Mapper/Signup.php#L58
module/Activity/src/Mapper/Signup.php:58:78: MoreSpecificReturnType: The declared return type 'int' for Activity\Mapper\Signup::getNumberOfSignedUpMembers is more specific than the inferred return type 'null|scalar' (see https://psalm.dev/070)
|
Generate Psalm Baseline:
module/Activity/src/Service/Activity.php#L452
module/Activity/src/Service/Activity.php:452:37: PossiblyFalseReference: Cannot call method getNew on possibly false value (see https://psalm.dev/105)
|
Generate Psalm Baseline:
module/Application/src/Form/Localisable.php#L15
module/Application/src/Form/Localisable.php:15:16: MissingTemplateParam: Application\Form\Localisable has missing template params when extending Laminas\Form\Form, expecting 1 (see https://psalm.dev/182)
|
Generate Psalm Baseline:
module/Application/src/Form/ModifyRequest.php#L16
module/Application/src/Form/ModifyRequest.php:16:7: MissingTemplateParam: Application\Form\ModifyRequest has missing template params when extending Laminas\Form\Form, expecting 1 (see https://psalm.dev/182)
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading