Skip to content

Commit d01a01e

Browse files
committed
fix last_login type
1 parent 9fd9b51 commit d01a01e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Glpi/Api/HL/Controller/AdministrationController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ public static function getRawKnownSchemas(): array
216216
],
217217
'last_login' => [
218218
'x-version-introduced' => '2.1.0',
219-
'type' => Doc\Schema::FORMAT_STRING_DATE_TIME
219+
'type' => Doc\Schema::TYPE_STRING,
220+
'format' => Doc\Schema::FORMAT_STRING_DATE_TIME,
220221
],
221222
'default_profile' => self::getDropdownTypeSchema(class: Profile::class, full_schema: 'Profile') + [
222223
'x-version-introduced' => '2.1.0',

tests/functional/Glpi/Api/HL/Controller/AdministrationControllerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,8 @@ public function testEmailScope()
604604
});
605605
}
606606

607-
private function assertUserPreferenceResponseOK($content) {
607+
private function assertUserPreferenceResponseOK($content)
608+
{
608609
$this->assertIsArray($content);
609610
// Spot check some known preferences
610611
$this->assertArrayHasKey('language', $content);

0 commit comments

Comments
 (0)