{ "uuid": [ { "value": "1aa7a4d1-08a8-4cb0-99ba-62e279517b4b" } ], "langcode": [ { "value": "en" } ], "type": [ { "target_id": "daily_email", "target_type": "node_type", "target_uuid": "8bde1f2f-eef9-4f2d-ae9c-96921f8193d7" } ], "revision_timestamp": [ { "value": "2025-05-11T09:00:00+00:00" } ], "revision_uid": [ { "target_type": "user", "target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849" } ], "revision_log": [], "status": [ { "value": true } ], "uid": [ { "target_type": "user", "target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849" } ], "title": [ { "value": "Extra PHPDoc types with PHPStan" } ], "created": [ { "value": "2025-03-21T00:00:00+00:00" } ], "changed": [ { "value": "2025-05-11T09:00:00+00:00" } ], "promote": [ { "value": false } ], "sticky": [ { "value": false } ], "default_langcode": [ { "value": true } ], "revision_translation_affected": [ { "value": true } ], "path": [ { "alias": "\/daily\/2025\/03\/21\/phpdoc", "langcode": "en" } ], "body": [ { "value": "\n
Here are some examples of PHP code from Drupal core:<\/p>\n\n
\/**\n * The weight of this role in administrative listings.\n *\n * @var int\n *\/\nprotected $weight;\n<\/code><\/pre>\n\n\/**\n * Path of the image file.\n *\n * @var string\n *\/\nprotected $source = '';\n<\/code><\/pre>\n\n\/**\n * Alter the list of mail backend plugin definitions.\n *\n * @param array $info\n * The mail backend plugin definitions to be altered.\n *\/\n<\/code><\/pre>\n\nThese use some of the standard PHPDoc types of int<\/code>, string<\/code> and array<\/code>.<\/p>\n\nAlthough they are comments, docblocks are checked by static analysis tools like PHPStan to parse the code and report any potential errors.<\/p>\n\n