Skip to content

Commit 2f2ba2a

Browse files
committed
Readme updated about TypeError exceptions
1 parent c26b198 commit 2f2ba2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Once you start the time with a given key, you can use the same key to refer to t
4141
You can of course use PHP magic constants to make things easier:
4242

4343
Timer::start(__FUNCTION__);
44-
Attempting to start the timer with a non-scalar key will throw an `\InvalidArgumentException` exception.
44+
Attempting to start the timer with a non-scalar key will throw a `\TypeError` exception.
4545

4646
####Read timer
4747
After starting the timer, you can read the elapsed time at any time. Reading the time will not stop the timer. You can read the timer, do some expensive calculations, and read again to get the cumulative time.

0 commit comments

Comments
 (0)