Skip to content

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

Open
jakub-grzesiowski wants to merge 12 commits into
masterfrom
php-prs-129-131
Open

PHP 8.5 support, setType in SetChannelMetadata, bug fixes#137
jakub-grzesiowski wants to merge 12 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.

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.

5 participants