Skip to content

Commit

Permalink
Update 2022-03-07-5-constant-lists-that-give-context-to-your-integers… (
Browse files Browse the repository at this point in the history
#1461)

Typos.

BTW: The direct link on https://tomasvotruba.com/blog/5-constant-lists-that-give-context-to-your-integers-and-strings to edit the page in GitHub is gone - did you remove it on purpose?
  • Loading branch information
ThomasLandauer authored Mar 13, 2024
1 parent e064a3e commit b899821
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
id: 351
title: "5 Constant Lists That Give Context to your Integers and Strings"
perex: |
[Native enums](https://php.watch/versions/8.1/enums) is a new PHP 8.1 feature. This feature brings more focus on *what* enums are *where* we can use them.
[Native enums](https://php.watch/versions/8.1/enums) is a new PHP 8.1 feature. This feature brings more focus on *what* enums are and *where* we can use them.
**Not on PHP 8.1 yet?** Don't worry, before that, enums were emulated by public constants. Few constant lists are already part of your favorite framework, ORM, or utils package for years.
**Not on PHP 8.1 yet?** Don't worry, before that, enums were emulated by public constants. Some constant lists are already part of your favorite framework, ORM, or utils package for years.
Today we look at 5 constant lists that you can use today to replace that `int` or `string` and give it a context.
Expand Down

0 comments on commit b899821

Please sign in to comment.