diff --git a/ChangeLog.md b/ChangeLog.md index 2412dab..2c6c94c 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -3,9 +3,13 @@ stomp ChangeLog ## ?.?.? / ????-??-?? +## 12.0.0 / 2021-10-24 + * Made library compatible with XP 11, `xp-framework/networking` version 11.0 and PHP 8.1 (@thekid) +* Implemented xp-framework/rfc#341, dropping compatibility with XP 9 + (@thekid) ## 11.1.0 / 2021-01-13 diff --git a/composer.json b/composer.json index 6ac1bf2..4874ddd 100755 --- a/composer.json +++ b/composer.json @@ -6,13 +6,13 @@ "description" : "STOMP protocol implementation", "keywords": ["module", "xp"], "require" : { - "xp-framework/core": "^11.0 | ^10.0 | ^9.0 | ^8.0 | ^7.0", - "xp-framework/logging": "^11.0 | ^10.0 | ^9.0 | ^8.0 | ^7.0", - "xp-framework/networking": "^10.0 | ^9.0 | ^8.0 | ^7.0 | ^6.6", + "xp-framework/core": "^11.0 | ^10.0", + "xp-framework/logging": "^11.0 | ^10.0 | ^9.1", + "xp-framework/networking": "^10.0 | ^9.3", "php": ">=7.0.0" }, "require-dev" : { - "xp-framework/unittest": "^11.0 | ^10.0 | ^9.0 | ^8.0 | ^7.0" + "xp-framework/unittest": "^11.0 | ^10.1" }, "autoload" : { "files" : ["src/main/php/autoload.php"] diff --git a/src/test/php/peer/stomp/unittest/BaseTest.class.php b/src/test/php/peer/stomp/unittest/BaseTest.class.php index 12d0a35..9d31ce7 100755 --- a/src/test/php/peer/stomp/unittest/BaseTest.class.php +++ b/src/test/php/peer/stomp/unittest/BaseTest.class.php @@ -33,7 +33,7 @@ public function _connect(URL $url) { } public function _disconnect() { - $this->sent= $this->out->getStream()->getBytes(); + $this->sent= $this->out->stream()->bytes(); $this->in= null; $this->out= null; } @@ -52,7 +52,7 @@ public function readSentBytes() { return $sent; } - return $this->out->getStream()->getBytes(); + return $this->out->stream()->bytes(); } public function clearSentBytes() { diff --git a/src/test/php/peer/stomp/unittest/FrameToWireTest.class.php b/src/test/php/peer/stomp/unittest/FrameToWireTest.class.php index 5cce3a5..e130297 100755 --- a/src/test/php/peer/stomp/unittest/FrameToWireTest.class.php +++ b/src/test/php/peer/stomp/unittest/FrameToWireTest.class.php @@ -16,7 +16,7 @@ class FrameToWireTest extends TestCase { private function write($frame) { $out= new MemoryOutputStream(); $frame->write(new StringWriter($out)); - return $out->getBytes(); + return $out->bytes(); } #[Test]