1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24:03 +00:00
laravel-tips/content/tips/you-can-use-array-annotations-to-specify-the-available-keys-and-their-value-types-in-php-arrays.md
2021-12-03 18:31:27 +01:00

545 B

title tweet_id thread_slug author_username images created_at slug
You can use array{} annotations to specify the available keys (and their value types) in PHP arrays 1466810191521869825 weekly-thread-2021-48 freekmurze
https://pbs.twimg.com/media/FFrjS3xXwAIdNuy.jpg
2021-12-03T16:42:56+00:00 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