--- title: 'You can use array{} annotations to specify the available keys (and their value types) in PHP arrays' tweet_id: '1466810191521869825' thread_slug: weekly-thread-2021-48 author_username: freekmurze images: - 'https://pbs.twimg.com/media/FFrjS3xXwAIdNuy.jpg' created_at: 2021-12-03T16:42:56+00:00 slug: you-can-use-array-annotations-to-specify-the-available-keys-and-their-value-types-in-php-arrays --- 🔥When you add an `array{}` return docblock, IDEs are able to autocomplete the keys when reaching into that array. Sweet! #php