@@ -25,22 +25,22 @@ class Book extends LeanMapper\Entity
2525 return $ this ->convertJson ($ value );
2626 }
2727
28- if (is_a ($ type , 'DateTime ' , TRUE )) {
28+ if (is_a ($ type , 'DateTime ' , true )) {
2929 if ($ value instanceof DateTime) {
3030 return clone $ value ;
3131 }
3232 return new DateTime ($ value );
3333 }
3434
35- if (is_a ($ type , 'Uuid ' , TRUE )) {
35+ if (is_a ($ type , 'Uuid ' , true )) {
3636 return ($ value instanceof Uuid) ? $ value : new Uuid ($ value );
3737 }
3838
39- if (is_a ($ type , 'Time ' , TRUE )) {
39+ if (is_a ($ type , 'Time ' , true )) {
4040 return ($ value instanceof Time) ? $ value ->getTime () : new Time ($ value );
4141 }
4242
43- if (!$ property ->isBasicType () && is_a ($ type , 'Integer ' , TRUE )) { // is_a() accepts 'integer' as class name
43+ if (!$ property ->isBasicType () && is_a ($ type , 'Integer ' , true )) { // is_a() accepts 'integer' as class name
4444 return $ this ->convertToInteger ($ value );
4545 }
4646
@@ -56,22 +56,22 @@ class Book extends LeanMapper\Entity
5656 return $ this ->convertJson ($ value );
5757 }
5858
59- if (is_a ($ type , 'DateTime ' , TRUE )) {
59+ if (is_a ($ type , 'DateTime ' , true )) {
6060 if ($ value instanceof DateTime) {
6161 return $ value ->format ('Y-m-d ' );
6262 }
6363 return $ value ;
6464 }
6565
66- if (is_a ($ type , 'Uuid ' , TRUE )) {
66+ if (is_a ($ type , 'Uuid ' , true )) {
6767 return ($ value instanceof Uuid) ? $ value : new Uuid ($ value );
6868 }
6969
70- if (is_a ($ type , 'Time ' , TRUE )) {
70+ if (is_a ($ type , 'Time ' , true )) {
7171 return ($ value instanceof Time) ? $ value ->getTime () : new Time ($ value );
7272 }
7373
74- if (!$ property ->isBasicType () && is_a ($ type , 'Integer ' , TRUE )) { // is_a() accepts 'integer' as class name
74+ if (!$ property ->isBasicType () && is_a ($ type , 'Integer ' , true )) { // is_a() accepts 'integer' as class name
7575 return $ this ->convertToInteger ($ value );
7676 }
7777
0 commit comments