Skip to content

PHP 8.5 support, setType in SetChannelMetadata, bug fixes - #137

Merged
jakub-grzesiowski merged 13 commits into
masterfrom
php-prs-129-131
Jul 28, 2026
Merged

PHP 8.5 support, setType in SetChannelMetadata, bug fixes#137
jakub-grzesiowski merged 13 commits into
masterfrom
php-prs-129-131

Conversation

@jakub-grzesiowski

Copy link
Copy Markdown
Contributor

feat: add setType in SetChannelMetadata

Added setType to SetChannelMetadata because ->meta(['type' => 'some type']) is deprecated

feat: php 8.5 support

Added SDK support for PHP 8.5

fix: logical operator for member and UUID checks

Fixed incorrect check logic for Member and UUID in members management

fix: minor crypto fixes

Fixed minor issues in PaddingTrait::depad(), PubNubCryptoCore::unPadPKCS7(), and CryptoModule::decodeHeader()

Closes #129 #130 #131

denismosolov and others added 8 commits April 14, 2026 12:34
Because `->meta(['type' => 'some type'])` is deprecated
It does not work the way it may look at first glance because of operator precedence (https://www.php.net/manual/en/language.operators.precedence.php
)

`or` is called after the assignment `=`
`||` is called before the assignment =

It is interpreted as:

```
($members = !empty($this->setMembers)) or !empty($this->removeMembers);
```

So if:

$this->setMembers has 0 elements → empty(...) is true → !empty(...) is false
$this->removeMembers has 1 element → !empty(...) is true

Then:

$members = false;
@pubnub-ops-terraform

pubnub-ops-terraform commented Jul 23, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@jakub-grzesiowski

Copy link
Copy Markdown
Contributor Author

@pubnub-release-bot release as 9.0.3

@marcin-cebo marcin-cebo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jakub-grzesiowski
jakub-grzesiowski merged commit e5b1ade into master Jul 28, 2026
13 checks passed
@jakub-grzesiowski
jakub-grzesiowski deleted the php-prs-129-131 branch July 28, 2026 08:37
@pubnub-release-bot

Copy link
Copy Markdown
Contributor

🚀 Release successfully completed 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants