Skip to main content
[2022-01-06]

Documenting PHPStan + Drupal!

#drupal #phpstan #phpstan-drupal

In the early days of Drupal 9, most folks were only using PHPStan on their Drupal sites via drupal-check for deprecation checks. I am excited to see more folks using PHPStan directly with phpstan-drupal to perform static analysis and deprecation checks.

[2022-01-04]

Ensuring Drupal route lookups by path are cached by domain

#drupal

In this episode of "Matt does ridiculous things with Drupal," I found out that the inbound processing of a path and the lookup for its route gets cached. That makes sense, it can be an expensive process to say /foo is actually an alias of /node/1 and should go to the entity view controller.

[2021-12-31]

The Typed Data API, by example

#drupal

There is a fantastic low-level API in Drupal called the Typed Data API. It is fantastic and provides a great way to handle data representation via a schema and validate that data's values. The Typed Data API is the foundation for the Entity API.

[2021-11-15]

A year of something new and now for something different

#drupal
[2021-11-12]

9 years as a professional developer

While I don't precisely enjoy using Facebook anymore, the memories feature can be helpful. Like, today! Nine years ago, I had my first day as an official web developer. The local marketing agency Dooley & Associates hired me as their first in-house web developer.

[2021-10-20]

Upgrading Drupal should be and can be pretty easy with Composer. However, we currently have two or three packages that need to be updated whenever a new version of Drupal core comes out.

  • drupal/core-recommended – Drupal core, itself
  • drupal/core-composer-scaffold – Composer scaffolding for required files
  • drupal/core-dev – Test and quality dependencies

Using Composer's wildcard abilities, we can get these upgraded in one shot:

composer update "drupal/core*" -W

The -W flag ensures all of the dependencies required by these packages are also updated.