Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@halftrainedharry
Copy link
Contributor

What does it do?

Better error handling in the Workspace/Packages/Rest/GetList processor.

Why is it needed?

While searching for extras in the "Package Browser", the code throws a fatal error when there is a problem with the connection.

Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given

The find() function of the class modTransportProvider returns a string if there is a error:

* @return array|string Array of packages, or a string error message if the request failed

@opengeek opengeek merged commit 7fa7df5 into modxcms:3.x May 6, 2025
7 checks passed
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.

3 participants