feat: Inline Database #481
Annotations
6 errors and 2 warnings
InvalidArrayOffset:
src/Databases/Database.php#L147
src/Databases/Database.php:147:13: InvalidArrayOffset: Cannot access value on variable $array using offset value of 'is_inline', expecting 'object', 'id', 'created_time', 'last_edited_time', 'title', 'description', 'icon', 'cover', 'properties', 'parent' or 'url' (see https://psalm.dev/115)
|
MixedArgument:
src/Databases/Database.php#L147
src/Databases/Database.php:147:13: MixedArgument: Argument 11 of Notion\Databases\Database::__construct cannot be mixed, expecting bool (see https://psalm.dev/030)
|
InvalidArgument:
tests/Unit/Databases/DatabaseTest.php#L219
tests/Unit/Databases/DatabaseTest.php:219:41: InvalidArgument: Argument 1 of Notion\Databases\Database::fromArray expects array{cover: array{caption?: list<array{annotations: array{bold: bool, code: bool, color: string, italic: bool, strikethrough: bool, underline: bool}, equation?: array{expression: string}, href: null|string, mention?: array{database?: array{id: string}, date?: array{end?: null|string, start: string}, page?: array{id: string}, type: 'database'|'date'|'page'|'user', user?: array{avatar_url?: string, bot?: array<never, never>, id: string, name?: string, object: 'user', person?: array{email: string}, type?: 'bot'|'person'}}, plain_text: string, text?: array{content: string, link?: array{url: string}}, type: 'equation'|'mention'|'text'}>, external?: array{url: string}, file?: array{expiry_time: string, url: string}, name?: string, type: 'external'|'file'}|null, created_time: string, description: array<array-key, array{annotations: array{bold: bool, code: bool, color: string, italic: bool, strikethrough: bool, underline: bool}, equation?: array{expression: string}, href: null|string, mention?: array{database?: array{id: string}, date?: array{end?: null|string, start: string}, page?: array{id: string}, type: 'database'|'date'|'page'|'user', user?: array{avatar_url?: string, bot?: array<never, never>, id: string, name?: string, object: 'user', person?: array{email: string}, type?: 'bot'|'person'}}, plain_text: string, text?: array{content: string, link?: array{url: string}}, type: 'equation'|'mention'|'text'}>, icon: array{caption?: list<array{annotations: array{bold: bool, code: bool, color: string, italic: bool, strikethrough: bool, underline: bool}, equation?: array{expression: string}, href: null|string, mention?: array{database?: array{id: string}, date?: array{end?: null|string, start: string}, page?: array{id: string}, type: 'database'|'date'|'page'|'user', user?: array{avatar_url?: string, bot?: array<never, never>, id: string, name?: string, object: 'user', person?: array{email: string}, type?: 'bot'|'person'}}, plain_text: string, text?: array{content: string, link?: array{url: string}}, type: 'equation'|'mention'|'text'}>, emoji?: string, external?: array{url: string}, file?: array{expiry_time: string, url: string}, name?: string, type: 'emoji'|'external'|'file'}|null, id: string, last_edited_time: string, object: 'database', parent: array{block_id?: string, page_id?: string, type: 'block_id'|'page_id'|'workspace', workspace?: true}, properties: array<string, array{id: string, name: string, type: string, ...<array-key, mixed>}>, title: array<array-key, array{annotations: array{bold: bool, code: bool, color: string, italic: bool, strikethrough: bool, underline: bool}, equation?: array{expression: string}, href: null|string, mention?: array{database?: array{id: string}, date?: array{end?: null|string, start: string}, page?: array{id: string}, type: 'database'|'date'|'page'|'user', user?: array{avatar_url?: string, bot?: array<never, never>, id: string, name?: string, object: 'user', person?: array{email: string}, type?: 'bot'|'person'}}, plain_text: string, text?: array{content: string, link?: array{url: string}}, type: 'equation'|'mention'|'text'}>, url: string}, but array{cover: null, created_time: '2020-12-08T12:00:00.000000Z', description: list{array{annotations: array{bold: false, code: false, color: 'default', italic: false, strikethrough: false, underline: false}, href: null, plain_text: 'Database description', text: array{content: 'Database title'}, type: 'text'}}, icon: null, id: 'a7e80c0b-a766-43c3-a9e9-21ce94595e0e', is_inline: true, last_edited_time: '2020-12-08T12:00:00.000000Z', object: 'database', parent: array{page_id: '1ce62b6f-b7f3-4201-afd0-08acb02e61c6', type: 'page_id'}, properties: array{title: array{id: 'title', name: 'Dummy prop name', title: stdClass, type: 'title'}}, title: list{array{annotations: array{bold: false, code: false, color: 'default', italic: false, strikethrough: false, underline: false}, href: null, plain_text: 'Database title', text: array{content: 'Database t
|
InvalidArgument:
tests/Unit/Databases/DatabaseTest.php#L280
tests/Unit/Databases/DatabaseTest.php:280:41: InvalidArgument: Argument 1 of Notion\Databases\Database::fromArray expects array{cover: array{caption?: list<array{annotations: array{bold: bool, code: bool, color: string, italic: bool, strikethrough: bool, underline: bool}, equation?: array{expression: string}, href: null|string, mention?: array{database?: array{id: string}, date?: array{end?: null|string, start: string}, page?: array{id: string}, type: 'database'|'date'|'page'|'user', user?: array{avatar_url?: string, bot?: array<never, never>, id: string, name?: string, object: 'user', person?: array{email: string}, type?: 'bot'|'person'}}, plain_text: string, text?: array{content: string, link?: array{url: string}}, type: 'equation'|'mention'|'text'}>, external?: array{url: string}, file?: array{expiry_time: string, url: string}, name?: string, type: 'external'|'file'}|null, created_time: string, description: array<array-key, array{annotations: array{bold: bool, code: bool, color: string, italic: bool, strikethrough: bool, underline: bool}, equation?: array{expression: string}, href: null|string, mention?: array{database?: array{id: string}, date?: array{end?: null|string, start: string}, page?: array{id: string}, type: 'database'|'date'|'page'|'user', user?: array{avatar_url?: string, bot?: array<never, never>, id: string, name?: string, object: 'user', person?: array{email: string}, type?: 'bot'|'person'}}, plain_text: string, text?: array{content: string, link?: array{url: string}}, type: 'equation'|'mention'|'text'}>, icon: array{caption?: list<array{annotations: array{bold: bool, code: bool, color: string, italic: bool, strikethrough: bool, underline: bool}, equation?: array{expression: string}, href: null|string, mention?: array{database?: array{id: string}, date?: array{end?: null|string, start: string}, page?: array{id: string}, type: 'database'|'date'|'page'|'user', user?: array{avatar_url?: string, bot?: array<never, never>, id: string, name?: string, object: 'user', person?: array{email: string}, type?: 'bot'|'person'}}, plain_text: string, text?: array{content: string, link?: array{url: string}}, type: 'equation'|'mention'|'text'}>, emoji?: string, external?: array{url: string}, file?: array{expiry_time: string, url: string}, name?: string, type: 'emoji'|'external'|'file'}|null, id: string, last_edited_time: string, object: 'database', parent: array{block_id?: string, page_id?: string, type: 'block_id'|'page_id'|'workspace', workspace?: true}, properties: array<string, array{id: string, name: string, type: string, ...<array-key, mixed>}>, title: array<array-key, array{annotations: array{bold: bool, code: bool, color: string, italic: bool, strikethrough: bool, underline: bool}, equation?: array{expression: string}, href: null|string, mention?: array{database?: array{id: string}, date?: array{end?: null|string, start: string}, page?: array{id: string}, type: 'database'|'date'|'page'|'user', user?: array{avatar_url?: string, bot?: array<never, never>, id: string, name?: string, object: 'user', person?: array{email: string}, type?: 'bot'|'person'}}, plain_text: string, text?: array{content: string, link?: array{url: string}}, type: 'equation'|'mention'|'text'}>, url: string}, but array{cover: null, created_time: '2020-12-08T12:00:00.000000Z', description: array<never, never>, icon: array{emoji: '⭐', type: 'emoji'}, id: 'a7e80c0b-a766-43c3-a9e9-21ce94595e0e', is_inline: false, last_edited_time: '2020-12-08T12:00:00.000000Z', object: 'database', parent: array{page_id: '1ce62b6f-b7f3-4201-afd0-08acb02e61c6', type: 'page_id'}, properties: array{Title: array{id: 'title', name: 'Title', title: stdClass, type: 'title'}}, title: list{array{annotations: array{bold: false, code: false, color: 'default', italic: false, strikethrough: false, underline: false}, href: null, plain_text: 'Page title', text: array{content: 'Database title'}, type: 'text'}}, url: 'https://notion.so/a7e80c0ba76643c3a9e921ce94595e0e'} with additional array shape fields (is_inline) was provided (see https://psalm.dev/004)
|
InvalidArgument:
tests/Unit/Databases/DatabaseTest.php#L329
tests/Unit/Databases/DatabaseTest.php:329:41: InvalidArgument: Argument 1 of Notion\Databases\Database::fromArray expects array{cover: array{caption?: list<array{annotations: array{bold: bool, code: bool, color: string, italic: bool, strikethrough: bool, underline: bool}, equation?: array{expression: string}, href: null|string, mention?: array{database?: array{id: string}, date?: array{end?: null|string, start: string}, page?: array{id: string}, type: 'database'|'date'|'page'|'user', user?: array{avatar_url?: string, bot?: array<never, never>, id: string, name?: string, object: 'user', person?: array{email: string}, type?: 'bot'|'person'}}, plain_text: string, text?: array{content: string, link?: array{url: string}}, type: 'equation'|'mention'|'text'}>, external?: array{url: string}, file?: array{expiry_time: string, url: string}, name?: string, type: 'external'|'file'}|null, created_time: string, description: array<array-key, array{annotations: array{bold: bool, code: bool, color: string, italic: bool, strikethrough: bool, underline: bool}, equation?: array{expression: string}, href: null|string, mention?: array{database?: array{id: string}, date?: array{end?: null|string, start: string}, page?: array{id: string}, type: 'database'|'date'|'page'|'user', user?: array{avatar_url?: string, bot?: array<never, never>, id: string, name?: string, object: 'user', person?: array{email: string}, type?: 'bot'|'person'}}, plain_text: string, text?: array{content: string, link?: array{url: string}}, type: 'equation'|'mention'|'text'}>, icon: array{caption?: list<array{annotations: array{bold: bool, code: bool, color: string, italic: bool, strikethrough: bool, underline: bool}, equation?: array{expression: string}, href: null|string, mention?: array{database?: array{id: string}, date?: array{end?: null|string, start: string}, page?: array{id: string}, type: 'database'|'date'|'page'|'user', user?: array{avatar_url?: string, bot?: array<never, never>, id: string, name?: string, object: 'user', person?: array{email: string}, type?: 'bot'|'person'}}, plain_text: string, text?: array{content: string, link?: array{url: string}}, type: 'equation'|'mention'|'text'}>, emoji?: string, external?: array{url: string}, file?: array{expiry_time: string, url: string}, name?: string, type: 'emoji'|'external'|'file'}|null, id: string, last_edited_time: string, object: 'database', parent: array{block_id?: string, page_id?: string, type: 'block_id'|'page_id'|'workspace', workspace?: true}, properties: array<string, array{id: string, name: string, type: string, ...<array-key, mixed>}>, title: array<array-key, array{annotations: array{bold: bool, code: bool, color: string, italic: bool, strikethrough: bool, underline: bool}, equation?: array{expression: string}, href: null|string, mention?: array{database?: array{id: string}, date?: array{end?: null|string, start: string}, page?: array{id: string}, type: 'database'|'date'|'page'|'user', user?: array{avatar_url?: string, bot?: array<never, never>, id: string, name?: string, object: 'user', person?: array{email: string}, type?: 'bot'|'person'}}, plain_text: string, text?: array{content: string, link?: array{url: string}}, type: 'equation'|'mention'|'text'}>, url: string}, but array{cover: null, created_time: '2020-12-08T12:00:00.000000Z', description: array<never, never>, icon: array{external: array{url: 'https://my-site.com/image.png'}, type: 'external'}, id: 'a7e80c0b-a766-43c3-a9e9-21ce94595e0e', is_inline: false, last_edited_time: '2020-12-08T12:00:00.000000Z', object: 'database', parent: array{page_id: '1ce62b6f-b7f3-4201-afd0-08acb02e61c6', type: 'page_id'}, properties: array{Title: array{id: 'title', name: 'Title', title: stdClass, type: 'title'}}, title: list{array{annotations: array{bold: false, code: false, color: 'default', italic: false, strikethrough: false, underline: false}, href: null, plain_text: 'Page title', text: array{content: 'Database title'}, type: 'text'}}, url: 'https://notion.so/a7e80c0ba76643c3a9e921ce94595e0e'} with additional array shape fields (is_inline) was provided (see http
|
Psalm
Process completed with exit code 2.
|
Psalm
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, ramsey/[email protected]. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Psalm
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|