From eb7588803f8af6feac10aef6d9c097d85f461d14 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 16 Jul 2025 23:48:03 +0100 Subject: [PATCH] Add daily email --- content/meta/index.json | 7 ++ ...e.165bf925-8dd9-4e03-9b65-7fa0e64c646d.yml | 77 +++++++++++++++++++ ...s.8c145584-4de9-4d00-8c23-acf13476c3c7.yml | 10 +++ 3 files changed, 94 insertions(+) create mode 100644 content/node.165bf925-8dd9-4e03-9b65-7fa0e64c646d.yml create mode 100644 content/path_alias.8c145584-4de9-4d00-8c23-acf13476c3c7.yml diff --git a/content/meta/index.json b/content/meta/index.json index 19bcdf0e1..39cba5f67 100644 --- a/content/meta/index.json +++ b/content/meta/index.json @@ -7102,5 +7102,12 @@ ], "path_alias.bb4475a3-d279-415f-a52f-82fc5ca77c08": [ "node.2e8662f9-eab9-41a9-ae4a-7145b7931bea" + ], + "node.165bf925-8dd9-4e03-9b65-7fa0e64c646d": [ + "user.b8966985-d4b2-42a7-a319-2e94ccfbb849", + "node.2a6bc8bd-a1e0-4f62-8112-47c3107020c5" + ], + "path_alias.8c145584-4de9-4d00-8c23-acf13476c3c7": [ + "node.165bf925-8dd9-4e03-9b65-7fa0e64c646d" ] } \ No newline at end of file diff --git a/content/node.165bf925-8dd9-4e03-9b65-7fa0e64c646d.yml b/content/node.165bf925-8dd9-4e03-9b65-7fa0e64c646d.yml new file mode 100644 index 000000000..e0144786f --- /dev/null +++ b/content/node.165bf925-8dd9-4e03-9b65-7fa0e64c646d.yml @@ -0,0 +1,77 @@ +uuid: + - value: 165bf925-8dd9-4e03-9b65-7fa0e64c646d +langcode: + - value: en +type: + - target_id: daily_email + target_type: node_type + target_uuid: 8bde1f2f-eef9-4f2d-ae9c-96921f8193d7 +revision_timestamp: + - value: '2025-07-16T22:47:46+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: 'PHP compatibility checking with phpcs' +created: + - value: '2025-07-15T22:45:58+00:00' +changed: + - value: '2025-07-16T22:47:46+00:00' +promote: + - value: false +sticky: + - value: false +default_langcode: + - value: true +revision_translation_affected: + - value: true +path: + - alias: '' + pid: null + langcode: en +body: + - value: |- + PHP 8.5 will be the next version of PHP, scheduled for release this November. + + There are new features being added, including the `|>` pipe operator, that I'll look forward to using. + + Once it's released, how can you tell if your application code is compatible? + + Or, if you're stuck on an older version of PHP, how do you know if you can upgrade? + + Running your automated tests is a great first step. + + Another check is to use PHP CodeSniffer, aka (`phpcs`). + + As well as coding standards, it can also run PHP compatibility checks. + + With the [PHP Compatibility Coding Standard][0] installed, running `phpcs -p . --standard=PHPCompatibility` will perform the compatibility check and show any errors. + + To specify a version of PHP to test against, add `--runtime-set testVersion 8.5` using the desired version. + + If you need to make changes, I recommend [using Rector][1] and have it make the changes automatically. + + [0]: https://github.com/PHPCompatibility/PHPCompatibility + [1]: /daily/2025/01/31/rector + format: markdown + processed: | +

PHP 8.5 will be the next version of PHP, scheduled for release this November.

+

There are new features being added, including the |> pipe operator, that I'll look forward to using.

+

Once it's released, how can you tell if your application code is compatible?

+

Or, if you're stuck on an older version of PHP, how do you know if you can upgrade?

+

Running your automated tests is a great first step.

+

Another check is to use PHP CodeSniffer, aka (phpcs).

+

As well as coding standards, it can also run PHP compatibility checks.

+

With the PHP Compatibility Coding Standard installed, running phpcs -p . --standard=PHPCompatibility will perform the compatibility check and show any errors.

+

To specify a version of PHP to test against, add --runtime-set testVersion 8.5 using the desired version.

+

If you need to make changes, I recommend using Rector and have it make the changes automatically.

+ summary: '' +field_daily_email_cta: + - target_type: node + target_uuid: 2a6bc8bd-a1e0-4f62-8112-47c3107020c5 diff --git a/content/path_alias.8c145584-4de9-4d00-8c23-acf13476c3c7.yml b/content/path_alias.8c145584-4de9-4d00-8c23-acf13476c3c7.yml new file mode 100644 index 000000000..a7da488ae --- /dev/null +++ b/content/path_alias.8c145584-4de9-4d00-8c23-acf13476c3c7.yml @@ -0,0 +1,10 @@ +uuid: + - value: 8c145584-4de9-4d00-8c23-acf13476c3c7 +langcode: + - value: en +path: + - value: /node/165bf925-8dd9-4e03-9b65-7fa0e64c646d +alias: + - value: /daily/2025/07/15/php-compatibility-checking-phpcs +status: + - value: true