slunak / pushover-php Goto Github PK
View Code? Open in Web Editor NEWLight, simple and fast wrapper for the Pushover API
Home Page: https://pushover.net/api
License: MIT License
Light, simple and fast wrapper for the Pushover API
Home Page: https://pushover.net/api
License: MIT License
PHPUnit 9.5.27 by Sebastian Bergmann and contributors.
.PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/serhiy/code/pushover/pushover-php/src/Api/Glances/GlanceDataFields.php on line 70
.
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/serhiy/code/pushover/pushover-php/src/Api/Glances/GlanceDataFields.php on line 70
PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/serhiy/code/pushover/pushover-php/src/Api/Glances/GlanceDataFields.php on line 93
.
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/serhiy/code/pushover/pushover-php/src/Api/Glances/GlanceDataFields.php on line 93
PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/serhiy/code/pushover/pushover-php/src/Api/Glances/GlanceDataFields.php on line 116
.
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/serhiy/code/pushover/pushover-php/src/Api/Glances/GlanceDataFields.php on line 116
Implement https://pushover.net/api/groups#list
I have to add missing CreateGroupResponseTest
We're using Pushover and this great wrapper for our application to notify users about upcoming events. For easy handling we're using the Pushover Subscription API, so instead of user keys, we have subscription keys. Other as stated in the Pushover documentation, the response seems to not contain the licenses for the user. This leads to an error:
Undefined property: stdClass::$licenses
in serhiy/pushover/src/Client/Response/UserGroupValidationResponse.php in line 103
Steps to reproduce:
1.) Acquire subscription key via Pushover Subscription API
2.) Try to validate using Serhiy\Pushover\Api\UserGroupValidation\Validation
$application = new Application($appId);
$validation = new Validation($application);
$recipient = new Recipient($subscriptionKey);
$response = $validation->validate($recipient);
The last line throws this message
Potential fix:
Check if response contains licenses data prior to accessing it. Since PHP 7 it is possible to use null-coalesence operator ??.
Replace line 103 as follows:
$this->setLicenses($decodedCurlResponse->licenses ?? []);
Thank you for your great work!
Best regards,
Sebastian
Travis is missing a library when building PHP 8.2 environment. At the moment I implemented a workaround I described here:
https://travis-ci.community/t/php-8-2-support/13401
I would need to come back to this later when Travis properly supports 8.2.
I will be dropping support for PHP versions 7.1
, 7.2
and 7.3
, making version 7.4
a minimal required version to run this library. The library version number will be incremented from 1.2.0
to 2.0.0
. I will then stop supporting the version 1.2.0
.
Update: After dropping mentioned PHP versions, the library minor version will be incremented, e.g. 1.3.0
.
Curl Request Failed error is thrown multiple times when used in a server.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.