Releases: belgattitude/soluble-japha
Releases · belgattitude/soluble-japha
Version 2.1.0
Added
- Possibility to force usage of the php xml parser instead of the native dom xml, see #48
Version 2.0.0 - PHP7.1 only
This release requires PHP7.1 !!!
While major version have been incremented, the api between v1.4.0
and 2.0.0
has remained the same.
In other words no breaking changes should happen (BC preserved).
Changed
- Support for PHP7.1 only
declare(strict_types=1)
.
Fixed
- Minor bugfix with integer cookie encoding due to strict_types
Version 1.4.5
Fixed
- Fix call to
PjbProxyClient::getInstance()->destroy()
in favour ofPjbProxyClient::unregisterIntance()
.
Version 1.4.4
Fixed
- Ensure BrokenConnectionException if socket write/read fails (communication interrupted)
- Minor fix and cleanup in
SimpleHttpHandler
channel creation.
Added
- Parser tests added for invalid xml errors
Version 1.4.3
Fixed
- Temporarily remove phpstan from require-dev. It will be re-added in 2.0 due
to possible issues with plaform requirements.
If you want to install, add to your require-dev:"phpstan/phpstan": "^0.7.0"
- More typehints fixed or added
- Unit tests autoloading is now fixed.
Version 1.4.2
Fixed
- Fixed some invalid typehints thanks to phpstan !!!
Added
- New composer scripts for checking source code.
Version 1.4.1
Added
- Created
Soluble\Japha\Bridge\Exception\BrokenConnectionException
to mask
internal pjb62 driver BrokenConnectionException. Documented in DriverInterface as well.
Fixed
- Minor issue with
$ba->isInstanceOf($object, $class)
when second argclass
is
not a string neither anInterface\JavaObject
. The exceptionException\InvalidArgumentException
is now thrown (was masked before).
Improved
-
PHPDoc, improved documentation on Exception in DriveInterface and AbstractDriver.
-
PHPDoc, magic methods
__call()
,__get()
and__set()
nows inform
about possible exception. Thanks @marcospassos for persisting on this.
Version 1.4.0
Added
Interfaces\JavaObject
exposes magic methods__call()
,__get()
and__set()
to better reflect that non-existing methods and properties will be delegated to
the remote Java object.
Changed
- Possible bc-break in undocumented feature. The
DB\DriverManager::getJdbcDSN()
has changed its signature
and starts now with the driver name. An$options
array allows to pass extra options.
Improved
- Serialization with
__sleep()
and__wakeup()
has preliminary test support
Version 1.3.1
This release has been tested with the latest official phpjavabridge 7.1.3.
Added
- Pjb62\Driver added method
setExitCode(int $code)
from 7.1.3 upstream merge,
requires PHP 7.1.3+ to be interpreted on the bridge side.
Version 1.3.0
Added
-
Interfaces\JavaObject
now implementsArrayAccess
the following code is possible without calling java methods:$hashMap = $ba->java('java.util.HashMap'); $hashMap['key'] = 'cool'; if (isset($hashMap['key']) { echo $hashMap['key']; unset $hashMap['key']; }
-
Added convenience exception:
NoSuchFieldException
Changed
- Possible bc-break in undocumented
Adapter
option:java_default_timezone
.
It won't fall back to php default timezone if null. This feature is subject to caution. - Removed last
func_get_args
uses, replaced by PHP5.6 variadic notation inAbstractJava
andJavaException
. Interfaces\JavaObject
now implementsIteratorAggregate
, this behaviour was
already working but not statically stated.
Documentation
- Setting the default java timezone with
TimeZone.setDefault()
should be avoided
as its value is global on the JVM.