Skip to content
This repository was archived by the owner on Dec 26, 2023. It is now read-only.

Commit 1fa2a67

Browse files
committed
Update README.md
1 parent 522931b commit 1fa2a67

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class MyBoolean
2626
const MY_FALSE = 2;
2727
}
2828

29-
function IsTrue(int $myBoolean)
29+
function isTrue(int $myBoolean)
3030
{
3131
switch($myBoolean) {
3232
case MyBoolean::MY_TRUE:
@@ -36,12 +36,12 @@ function IsTrue(int $myBoolean)
3636
}
3737
}
3838

39-
IsTrue(MyBoolean::MY_TRUE); // returns true - OK
40-
IsTrue(MyBoolean::MY_FALSE); // returns false - OK
41-
IsTrue(1); // returns true - OK
42-
IsTrue(2); // returns false - scary, but OK
43-
IsTrue(true); // returns true - OK
44-
IsTrue(false); // returns null - WTF?
39+
isTrue(MyBoolean::MY_TRUE); // returns true - OK
40+
isTrue(MyBoolean::MY_FALSE); // returns false - OK
41+
isTrue(1); // returns true - OK
42+
isTrue(2); // returns false - scary, but OK
43+
isTrue(true); // returns true - OK
44+
isTrue(false); // returns null - WTF?
4545
```
4646

4747
```php
@@ -56,7 +56,7 @@ class MyBoolean extends \PetrKnap\Php\Enum\AbstractEnum
5656
}
5757
}
5858

59-
function IsTrue(MyBoolean $myBoolean)
59+
function isTrue(MyBoolean $myBoolean)
6060
{
6161
switch($myBoolean) {
6262
case MyBoolean::MY_TRUE():
@@ -66,12 +66,12 @@ function IsTrue(MyBoolean $myBoolean)
6666
}
6767
}
6868

69-
IsTrue(MyBoolean::MY_TRUE()); // returns true - OK
70-
IsTrue(MyBoolean::MY_FALSE()); // returns false - OK
71-
IsTrue(1); // uncaught TypeError - OK
72-
IsTrue(2); // uncaught TypeError - OK
73-
IsTrue(true); // uncaught TypeError - OK
74-
IsTrue(false); // uncaught TypeError - OK
69+
isTrue(MyBoolean::MY_TRUE()); // returns true - OK
70+
isTrue(MyBoolean::MY_FALSE()); // returns false - OK
71+
isTrue(1); // uncaught TypeError - OK
72+
isTrue(2); // uncaught TypeError - OK
73+
isTrue(true); // uncaught TypeError - OK
74+
isTrue(false); // uncaught TypeError - OK
7575
```
7676

7777

0 commit comments

Comments
 (0)