File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?php
22namespace PHPJava \Kernel \Mnemonics ;
33
4- use PHPJava \Kernel \Types \_Double ;
54use PHPJava \Utilities \BinaryTool ;
65use PHPJava \Utilities \Extractor ;
76
Original file line number Diff line number Diff line change 11<?php
22namespace PHPJava \Kernel \Mnemonics ;
33
4- use PHPJava \Kernel \Types \_Double ;
54use PHPJava \Kernel \Types \_Int ;
65use PHPJava \Utilities \BinaryTool ;
76use PHPJava \Utilities \Extractor ;
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ public function __construct($value)
2929
3030 /**
3131 * @param $value
32- * @return Type
3332 * @throws TypeException
33+ * @return Type
3434 */
3535 public static function get ($ value )
3636 {
Original file line number Diff line number Diff line change @@ -311,14 +311,14 @@ public static function convertPHPTypeToJavaType($value)
311311 return new _String ($ value );
312312 case 'int ' :
313313 case 'integer ' :
314- return new _Int ($ value );
314+ return _Int:: get ($ value );
315315 case 'bool ' :
316316 case 'boolean ' :
317- return new _Boolean ($ value );
317+ return _Boolean:: get ($ value );
318318 case 'float ' :
319- return new _Float ($ value );
319+ return _Float:: get ($ value );
320320 case 'double ' :
321- return new _Double ($ value );
321+ return _Double:: get ($ value );
322322 case 'object ' :
323323 return $ value ;
324324 case 'array ' :
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ public function testIntToChar()
9393
9494 // check type
9595 $ this ->assertInstanceOf (_Char::class, $ result );
96- $ this ->assertEquals (" { " , (string ) $ result );
96+ $ this ->assertEquals (' { ' , (string ) $ result );
9797 }
9898
9999 public function testLongToDouble ()
You can’t perform that action at this time.
0 commit comments