Skip to content

Commit 1bee193

Browse files
committed
Cleanup
1 parent abf7e37 commit 1bee193

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

exercises/all-mixed-up/problem/problem.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
As alluded to earlier in `Unite The Types` PHP's type system has been constantly and consistently growing for a long time.
1+
As alluded to earlier in `Unite The Types` PHP's type system has been constantly and consistently growing and evolving for a long time.
22

3-
PHP8 comes with a new type `mixed` which is essentially a union of `array|bool|callable|int|float|object|resource|string|null`.
3+
PHP 8 comes with a new type `mixed` which is essentially a union of `array|bool|callable|int|float|object|resource|string|null`.
44

55
This means that any value which can be produced in PHP will pass the check. Which is exactly the same as no type check.
66

@@ -11,7 +11,7 @@ If anything - it signals intent. Your function really does accept anything. It's
1111
----------------------------------------------------------------------
1212
Create a program which contains one function named `logParameter`. It should have one parameter, and it's type must be `mixed`.
1313

14-
Within your function you should log the type of the parameter that was passed. For this, you can use a new PHP8 function called `get_debug_type`.
14+
Within your function you should log the type of the parameter that was passed. For this, you can use a new PHP 8 function called `get_debug_type`.
1515

1616
This function will give you a string identifier representing the type of any PHP variable.
1717

@@ -51,6 +51,6 @@ Documentation on `get_debug_type` can be found by pointing your browser here:
5151

5252
You might want to delete or empty your log file each time your program starts, otherwise it will grow and grow and the comparison will fail.
5353

54-
Think about the return type of your `adder` function - you could declare it as `void`.
54+
Think about the return type of your `logParameter` function - you could declare it as `void`.
5555

5656
If you are curious how we compare the output of your program when it includes time, we simply check that it matches the format, rather than comparing exactly. More specifically, we use the regex `/\d{2}:\d{2}:\d{2}/`.

0 commit comments

Comments
 (0)