From 079e413a6f0b80ff6f1af4be20586629d6ab965f Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 19 Aug 2024 00:46:29 +0100 Subject: [PATCH] Attributes, not annotations --- source/.htaccess | 1 + source/_daily_emails/2024-08-15.md | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/source/.htaccess b/source/.htaccess index 4dad3af3..015ac307 100644 --- a/source/.htaccess +++ b/source/.htaccess @@ -26,6 +26,7 @@ ErrorDocument 404 /404/index.html RewriteRule ^articles/(.*) /blog/$1 [L,R=301] +Redirect 301 /daily/2024/08/15/docblocks-or-annotations /daily/2024/08/15/docblocks-or-attributes Redirect 301 /10-useful-drupal-6-modules-i-use-every-project /blog/10-useful-drupal-6-modules Redirect 301 /2010/04/05/styling-drupal-6s-taxonomy-lists-with-php-css-and-jquery /blog/style-drupal-6s-taxonomy-lists-php-css-jquery Redirect 301 /2010/04/28/using-imagecache-and-imagecrop-for-my-portfolio /blog/using-imagecache-imagecrop-my-portfolio diff --git a/source/_daily_emails/2024-08-15.md b/source/_daily_emails/2024-08-15.md index c29cbaa3..af52d6c0 100644 --- a/source/_daily_emails/2024-08-15.md +++ b/source/_daily_emails/2024-08-15.md @@ -1,14 +1,14 @@ --- -title: Docblocks or annotations? +title: Docblocks or attributes? date: 2024-08-15 -permalink: daily/2024/08/15/docblocks-or-annotations +permalink: daily/2024/08/15/docblocks-or-attributes tags: - software-development - php - automated-testing cta: ~ snippet: | - Docblocks or annotations. Which do you prefer? + Docblocks or attributes. Which do you prefer? --- As Drupal 11 uses PHPUnit 10, we can now use the `#[Test]` attribute instead of the `/** @test */` annotation for our test methods.