Skip to content

Commit

Permalink
Drop support for XP <= 9.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Oct 24, 2021
1 parent c84864d commit df4ffd6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
4 changes: 2 additions & 2 deletions src/test/php/peer/stomp/unittest/BaseTest.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -52,7 +52,7 @@ public function readSentBytes() {
return $sent;
}

return $this->out->getStream()->getBytes();
return $this->out->stream()->bytes();
}

public function clearSentBytes() {
Expand Down
2 changes: 1 addition & 1 deletion src/test/php/peer/stomp/unittest/FrameToWireTest.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit df4ffd6

Please sign in to comment.